ScriptUO
Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: thekidnick on November 19, 2008, 12:56:37 PM
-
Just teaching myself how to script as some of you saw I am making a smith script with salvage bag. I am just starting and trying to figure out how to move ingots from secure to salvage bag will this work?
set %Salvage XFQFGQD ;This is my salvage bag Will add Target Script Later
set %Secure XXXXX ;This is my Secure box Will add Target Script Later
;move ingots from SECURE to Salvage bag
findItem XKB C_, %Secure
event Drag #findID
wait 5
exevent dropc %Salvage
wait 5
How do I only pick up 2000 ingots? In the script I am only going to use this this part when my salvage bag has less than 500 ingots. So I am not worried about having too many ingots in my salvage bag.
Thanks for the help.
-
findItem XKB C_, %Secure
exevent Drag #findID <--- you want it to be exevent drag to match exevent dropc- prevents issues
wait 5
exevent dropc %Salvage
wait 5
THis should work but i think ingots are ENK for the id and your wait after the dropc may need to be more like 15-20
Other than that you really only need to add 2000 where I added it below. Nice start!
to select how amny to drag ... just add how many here...
exevent Drag #findID 2000