BBot - The best bot of the world
Help with 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: Help with Macro (/thread-6458.html)



Help with Macro - NajsNojzzer - 01-08-2013

Hello,

I'm trying to make macro and i dont know how to do it in bbot so i wrote it in PHP to show you what im trying to do.

if(Self.Inventory.Ammunition(3277) < 2){
Self.Equip.LeftHand(3208);
Exit;
}
else{
Self.Equip.LeftHand(3277)
Exit;
}
How to make from it BBOT Macro??

Ill give reputation for fastest answer


RE: Help with Macro - Dexter - 01-08-2013

[macro]1000 {change ID} Self.Inventory.Ammunition(3277)<=2 [else] Self.Equip.LeftHand(3208) {else} Self.Equip.LeftHand(3277)[/macro]

Between brackets is the label/"else" you want to skip if the result of the previous command is false. If the result is false he jumps to the label between braces.


RE: Help with Macro - NajsNojzzer - 01-08-2013

Thank for help Smile Reputation ++

ok, ive got such macro:
Self.Inventory.Ammunition.Count(3277)<=2[else]
Self.Equip.LeftHand(3297)
{else}
Self.Equip.LeftHand(3277)

and it doesnt changes my spears when are only 2 to serpent sword ;(


RE: Help with Macro - MegaNo0body - 01-08-2013

(01-08-2013, 02:24 PM)Dexter Wrote: [macro]1000 {change ID} Self.Inventory.Ammunition(3277)<=2 [else] Self.Equip.LeftHand(3208) {else} Self.Equip.LeftHand(3277)[/macro]

Between brackets is the label/"else" you want to skip if the result of the previous command is false. If the result is false he jumps to the label between braces.

[macro]1000 {change ID} Self.Inventory.Ammunition(3277)<=2 [else] Self.Equip.LeftHand(3208) Exit {else} Self.Equip.LeftHand(3277)[/macro]


RE: Help with Macro - NajsNojzzer - 01-08-2013

(01-08-2013, 04:02 PM)MegaNo0body Wrote:
(01-08-2013, 02:24 PM)Dexter Wrote: [macro]1000 {change ID} Self.Inventory.Ammunition(3277)<=2 [else] Self.Equip.LeftHand(3208) {else} Self.Equip.LeftHand(3277)[/macro]

Between brackets is the label/"else" you want to skip if the result of the previous command is false. If the result is false he jumps to the label between braces.

[macro]1000 {change ID} Self.Inventory.Ammunition(3277)<=2 [else] Self.Equip.LeftHand(3208) Exit {else} Self.Equip.LeftHand(3277)[/macro]

Doesn't Work ;s


RE: Help with Macro - Dexter - 01-08-2013

Try this:

[macro]1000 {change ID} Self.Inventory.Ammunition(3277)<=2 [else] Self.Equip.LeftHand(3208) Exit() {else} Self.Equip.LeftHand(3277)[/macro]