01-10-2016, 07:44 PM
(01-10-2016, 07:38 PM)nosbor00 Wrote: in my opinion script for RP should have multiple full checks (even for macro), to prevent munitions end up before leaving the hunt
example
{0} FullCheckAmmo Misc.ItemCountEx (! AmmoID!) <! MinAmmo! CaveBot.GoLabel (GoToRefiller) Exit ()
this way I can create some labels who walk through the cave to the central label
Thats how one of my macro checks looks like
Code:
infr:=Misc.ItemCountEx(6528)
poty:=Misc.ItemCountEx(7642)
scap:=Self.Capacity()
hawk:=Creatures.ByName(Black Hawk)
rabi:=Creatures.ByName(Rabitori)
task:=Creatures.TaskKilled(Hellhound)
!hawk!==1 [else01]
CaveBot.GoLabel(powrot)
exit()
{else01}
!rabi!==1 [else02]
CaveBot.GoLabel(powrot)
exit()
{else02}
!poty!<55 [else1]
CaveBot.GoLabel(powrot)
exit()
{else1}
!infr!<100 [else2]
CaveBot.GoLabel(powrot)
exit()
{else2}
!task!>=!zadanie! [else3]
CaveBot.GoLabel(powrot)
exit()
{else3}
CaveBot.GoLabel(dalej)
exit()