MACRO Dec doesn't work? - 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: MACRO Dec doesn't work? (/thread-20116.html) |
MACRO Dec doesn't work? - Karadoborgu - 07-13-2016 Hey there, trying out a simple script. ManaTrigger:=Self.ManaMax() Dec(!ManaTrigger!,1000) Self.Say(!ManaTrigger!) It says my max ammount of mana, like if DEC didn't affect it at all. RE: MACRO Dec doesn't work? - MegaNo0body - 07-13-2016 Code: Dec(!ManaTrigger!,1000) should be Code: Dec(ManaTrigger,1000) RE: MACRO Dec doesn't work? - Karadoborgu - 07-13-2016 Still doesn't work :/ RE: MACRO Dec doesn't work? - MegaNo0body - 07-13-2016 I'll check it, thanks RE: MACRO Dec doesn't work? - Catar - 07-13-2016 I'm sure VarSub works so just use this... instead of Dec Also u need SPACEBAR after , For example here is my macro that was throwing on ground certain amount of assassins stars when had less than given cap [macro]1000 {wywal asski} X1:=Self.X() Y1:=Self.Y() Z1:=Self.Z() astars:=Misc.ItemCountEx(7386) icap:=Self.Capacity() wcap:=185 !icap!<=!wcap! VarSub(wcap, !icap!) VarDiv(wcap, 2) VarAdd(wcap, 1) Map.Thrown(7368, !wcap!, !X1!, !Y1!, !Z1!) [/macro] |