Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Puxar Spear do DP
#1
Tem como fazer o bot puxar as royal spears do dp?

Quero upar um pala que ta free ac., daí iria deixar as spears no 2º slot e configurar ele pra ir city quando tivesse com poucas, e puxar pra mão, tem como?

Valeu
#2
Não tem como pegar do Dp, mas você pode esconder em algum lugar e botar pra o bot ir la buscar, se for fazer isso use o macro

2000 {Pick Up Ammo} Map.PickUpEx(ID, Count, ContainerTo, X, Y, Z, Range)
#3
hmmm Ta, saquei, e pra contar as spears da mão tem como?
#4
(01-19-2013, 01:12 AM)alecolling Wrote: hmmm Ta, saquei, e pra contar as spears da mão tem como?

pra adc no cavebot:

0 {spears count} Self.Inventory.LeftHand()<=X CaveBot.GoLabel(DP)
#5
Yuri, fiz assim

1000 {spears count} Self.Inventory.LeftHand(3277)<=15 CaveBot.GoLabel(deposit)

olha o debug sem spear na mão:

Quote:Start-Of-Macro

Self.Inventory.LeftHand(3277) returned 0
[True] Self.Inventory.LeftHand(3277)<15

CaveBot.GoLabel(deposit) returned 1
End-Of-Macro

ele continuou na hunt

e com 10 na mão:

Quote:Start-Of-Macro

Self.Inventory.LeftHand(3277) returned 3277
[False] Self.Inventory.LeftHand(3277)<15
[@] Exit of macro

End-Of-Macro

Viu que ele não retorna valor? Só o ID?


Não tem como contar spear então? ..
#6
Self.Inventory.LeftHand(3277) irá retornar somente o ID. Se você quer que ele conte o que tem na left hand adicione o Self.Inventory.LeftHand.Count()


Forum Jump:


Users browsing this thread: 1 Guest(s)