ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: Cuemif on January 11, 2011, 03:35:06 PM

Title: Little help ?
Post by: Cuemif on January 11, 2011, 03:35:06 PM
Hey guys, I am trying to add a sub into a current script but I don't know where to start. The script I am looking to add a sub into is here. http://www.scriptuo.com/index.php?topic=1999.0 (http://www.scriptuo.com/index.php?topic=1999.0)

What I would like to do is: If crossbow bolts = 0, double click my bank stone and then pull 1000 crossbow bolts from my bank and place them into my backpack. My newb scripting mind can not grasp how to do this. Maybe someone can point me in the right direction? Or help me out a bit? Thanks in advance!

Bankstone code.
Code: [Select]
#FINDID:IPKOYMD
#FINDTYPE:SNF

Crossbow bolts
Code: [Select]
#FINDID:YIEDSMD
#FINDTYPE:LNK

Thanks again guys