BBot - The best bot of the world
Trocar arma - 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: Trocar arma (/thread-4016.html)



Trocar arma - Synth - 08-23-2012

então, queria deixar meu char treinando nos troll com uma knife, so que, quando aparecer mais de 2 trolls, ele troca de arma(pega a serpent) e mata os outros, até voltar pra 2 trolls e pega a knife denovo.


RE: Trocar arma - Kimoszin - 08-23-2012

Code:
1000 {Auto Equip} Trolls:=2 Creatures.Beside()>!Trolls! [Equip Knife] Self.Equip.LeftHand(3297) Exit {Equip Knife} Self.Equip.LeftHand(3291) Exit

Se ficar mais de 2 trolls ao seu lado ele vai equipar a serpent sword, quando ficar menos vai equipar a knife.
Para mudar quantidade edite o Trolls:=2


RE: Trocar arma - Synth - 08-23-2012

(08-23-2012, 01:05 AM)Kimoszin Wrote:
Code:
1000 {Auto Equip} Trolls:=2 Creatures.Beside()>!Trolls! [Equip Knife] Self.Equip.LeftHand(3297) Exit {Equip Knife} Self.Equip.LeftHand(3291) Exit

Se ficar mais de 2 trolls ao seu lado ele vai equipar a serpent sword, quando ficar menos vai equipar a knife.
Para mudar quantidade edite o Trolls:=2

não funciona, ele so fica com a knife quando não tem nenhum bicho, e quando tem, ate mesmo quando so tem 1 troll, ele ekipa a serpent.


RE: Trocar arma - Kimoszin - 08-23-2012

Code:
1000 {Change Weapon} Trolls:=2 Creatures.Beside()>!Trolls! [Equipe Serpent] Self.Equip.LeftHand(3297) Exit() {Equipe Serpent} Self.Equip.LeftHand(3291) Exit()
Se tiver mais de 2 Trolls no seu lado, ele vai equipar a serpent, se não tiver ele vai equipar a knife.