BBot - The best bot of the world
Puxar Spear do DP - Printable Version

+- BBot - The best bot of the world (https://forums.bmega.net)
+-- Forum: Support (https://forums.bmega.net/forum-6.html)
+--- Forum: Support & Help (https://forums.bmega.net/forum-8.html)
+--- Thread: Puxar Spear do DP (/thread-6704.html)



Puxar Spear do DP - alecolling - 01-18-2013

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


RE: Puxar Spear do DP - Hunger - 01-18-2013

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)


RE: Puxar Spear do DP - alecolling - 01-19-2013

hmmm Ta, saquei, e pra contar as spears da mão tem como?


RE: Puxar Spear do DP - yurimatos - 01-19-2013

(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)


RE: Puxar Spear do DP - alecolling - 01-21-2013

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? ..


RE: Puxar Spear do DP - Dexter - 01-21-2013

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()