Page 1 of 1

How complex can I get?

Posted: Fri Apr 16, 2004 6:31 pm
by nightgod
Before I put too much time into it, just want to know if the following pseudo-code is possible in a /custombind:

name=quick_click
down=check if epic is not currently equiped/if[Me.Inventory[mainhand]!="water sprinkler of nem ankh", (/multiline ; swap current mainhand out for cleric epic in a bag, set global variable to know that this has been done-ie: /declare Epicstate global ; /varset Epicstate 1), (otherwise, just set the global variable to 0 /multiline ; /declare Epicstate global ; /varset Epicstate 0)
up=right click epic, wait 10.5 second for the cast to finish /multiline ; /itemnotify mainhand rightmouseup ; /timed 105 /if "Epicstate"==1, (if we swapped out mainhand for epic earlier, swap it back), (otherwise, do nothing)

Posted: Sat Apr 17, 2004 5:22 am
by Digitalxero
/custombind add res
/custombind set res /multiline ; /tt Res Inc;/swapitem "Water Sprinkler of Nem Ankh" primary;/cast item "Water Sprinkler of Nem Ankh";/timed 110 /swapitem "Mace of Confusion" primary
/bind res alt+space


I use a plugin called swapitem that is posted over at FH http://forever-hack.net/viewtopic.php?t=152

this will swap my Mace of confution to a bag and put epic in primary and back again after res is cast

Posted: Sat Apr 17, 2004 11:36 am
by Lax
the answer is yes you can do exactly what you're looking to do.