Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
problem with task command
#5
oh jeez man, there is easier way...

Make manual macro and u can add all decisions you want your bot to make.

Then put that macro on waypoint instead of full check


example of mine hellhound task maker ;D

variables:
Code:
buymana=2740
buyhp=200

zadanie=252
resettask=1

Checkpoint on SPAWN
[macro]0 {checkpoint}
task:=Creatures.TaskKilled(Hellhound)
mpoty:=Misc.ItemCountEx(268)
upoty:=Misc.ItemCountEx(7643)
!upoty!<40 [else1]
CaveBot.GoLabel(powrot) exit()
{else1}
!mpoty!<120 [else2]
CaveBot.GoLabel(powrot)
exit()
{else2}
!task!>=!zadanie! [else3]
CaveBot.GoLabel(powrot)
exit()
{else3}
CaveBot.GoLabel(dalej)
exit()
[/macro]


Checkpoint in DEPO

[macro]0 {ilesupp}
bmana:=!buymana!
VarSub(bmana, 10)
upoty:=Misc.ItemCountEx(7643)
mpoty:=Misc.ItemCountEx(268)
task:=Creatures.TaskKilled(Hellhound)
!upoty!<!buyhp! [else1]
ReUser.Pause(Haste)
CaveBot.GoLabel(Refill)
exit()
{else1}
!mpoty!<!bmana!
[else2] ReUser.Pause(Haste)
CaveBot.GoLabel(Refill)
exit() {else2}
!task!>=!zadanie! [else3]
!resettask!==1 [res]
CaveBot.GoLabel(NewTask)
ReUser.UnPause(Haste) exit()
{res}
Self.Logout()
exit()
{else3}
ReUser.UnPause(Haste)
CaveBot.GoLabel(NaResp)
exit()[/macro]
Reply


Messages In This Thread
problem with task command - by zarize - 05-10-2016, 12:18 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)