BBot - The best bot of the world
What's wrong with this macro ? - 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: What's wrong with this macro ? (/thread-3116.html)



What's wrong with this macro ? - ponch0 - 07-04-2012

This is my macro for Wyrms
1000 {Sd Wyrm} Target.Health400 Target.Shoot(3155)

What this macro does it's simple, shoots an SD when it's almost dead the Wyrm.
(Like that I avoid the Wyrm running.)


But I dont know what's wrong
Can somebody say me why ?
And maybe explain me what was my mistake please

TY


RE: What's wrong with this macro ? - Dexter - 07-04-2012

This macro is wrong. Try this:
Code:
1000 {Sd Wyrm} Target.Health<=400 Target.Shoot(3155)



RE: What's wrong with this macro ? - MegaNo0body - 07-04-2012

The Target.Health returns the % of the health of the monster, so you should use smaller value like 20.


RE: What's wrong with this macro ? - MegaNo0body - 07-04-2012

Also you need to setup the Target object, before Target.Health and Target.Shoot add: Target.Foe.


RE: What's wrong with this macro ? - ponch0 - 07-05-2012

Thankyou Dexter for macro and Meganobody for explaining Big Grin

But only one more doubt where do I place it?
In Attack Sequences or in Macros?


RE: What's wrong with this macro ? - Dexter - 07-05-2012

Then, looks like this:
Code:
1000 {Sd Wyrm} Target.Foe Target.Health<=20 Target.Shoot(3155)

First, test in Macros.


RE: What's wrong with this macro ? - ponch0 - 07-05-2012

Yeah I did that macro too, it worked fine.
In Macro Section

But it's kind of slow shooting the SD so I use this Macro:
Quote:1000 {Sd Wyrm} Target.Foe Target.Health<=30 Target.Shoot(3155)

And in Attack Sequences
Quote:Exori mort and 1 second of Wait