ScriptUO
Official ScriptUO EasyUO Scripts => Script Snippets => Topic started by: Cerveza on July 28, 2011, 05:47:11 AM
-
Simply stacks shurikens by loading them into a belt, then unloading the belt.
display ok Target your secure container$with your stars in it
set #targCurs 1
while #targCurs = 1
wait 1
set %star_container #ltargetID
event macro 17
display ok Now target your belt
set #targCurs 1
while #targCurs = 1
wait 1
set %belt #ltargetID
set %star GDP
set %gump_size 127_60
set %loadX 30
set %loadY 20
set %unloadX 40
set %unloadY 40
repeat
for %i 1 5
{
finditem %belt
exevent popup #findID
gosub GumpAndSizeWait NULL normal_gump %gump_size
gosub offsetClick %loadX %loadY l
target
finditem %star C_ , %star_container
set #ltargetID #findID
set #ltargetKind 1
event macro 22
wait 10
}
finditem %belt
;if #findCnt > 0
exevent popup #findID
gosub GumpAndSizeWait NULL normal_gump %gump_size
gosub offsetClick %unloadX %unloadY l
wait 5
until #false
;-------------------------------------------------------------------------------
; %1 = GumpAndSizeWait
; %2 = Gumpname 1
; %3 = Gumpname 2
; gosub GumpAndSizeWait NULL generic_gump %lore_gump_size
sub GumpAndSizeWait
set %timedelay #SCNT
wait 5
GumpWait_loop1:
if #CONTNAME = %2 && #CONTSIZE = %3
return #FALSE ; no error
if #SCNT > %timedelay + 7
return #TRUE ; error, timeout
goto GumpWait_loop1
return #TRUE ; should never get here.
sub OffsetClick
set %tempx %1 + #CONTPOSX
set %tempy %2 + #CONTPOSY
click %tempx %tempy %3
return
Next will be poisoning them of course....
-
Added opening of the secure to make sure the shurikens are visible so they can be grabbed up.
I will be making a "modular" script which will use this:
1 - Make Shurikens
- drag/drop ingots
- drag/make smith tool
- make five shurikens
- add shurikens to belt
- unload belt
- move stack to secure
2 - Poison Shurikens
- drag/drop from secure to pack ; not sure if you can poison it in the secure container
- apply poison
- drag drop from pack to secure
Anything missing?
-
With the new rules, this is going to be a VEY popular script Cerv..may want to insure Fukiyas are included as well.
-
I'll do shurikens first. They work the same way so the only change would be in the crafting.
-
Can't wait to give this one a go Cerv...
-
Trying it this weekend
-
By God, I'm actually going to try looking for a PvP fight. First, I have to figure out how to throw these, though...
-
Let's see - how do ya spell dead meat?
-
Nope! I'm doing what all the real PvPers do: Scripting everything except the running away part! I'm real good at that already...
-
heheheh
-
Nope! I'm doing what all the real PvPers do: Scripting everything except the running away part! I'm real good at that already...
HAHAHAHA. This is a classic.
-
nice script comes in handy with stacking stars
-
Nope! I'm doing what all the real PvPers do: Scripting everything except the running away part! I'm real good at that already...
HA... Runaway.. Runaway... Monty Python Search for the Holy Grail. Good Times
-
I have a fully functional version of this that will pull ingots and tongs from a secure and make the shurikens, then put 5 into a belt. It will unload the belt and place the stack (now 10) into a secure for storage.
I'll release it as a full headered script.
-
Do you know when you'll be releaseing the script I'd like to test it as well
-
It could be tonight :)