Page 1 of 1

problem macro

Posted: Sat Aug 31, 2013 10:40 am
by Supergala
i have a problem with macro.....when i leave from istance my character )as in macro script) walk to npc and afetr speack with him ,my main transport in another zone but micromacro say me an error....ho can i resolve it?
micromacro say me:programfile/micromacro/script/rom/functions.lua:1780: "for" limit must be a number ty guys

Re: problem macro

Posted: Sat Aug 31, 2013 1:45 pm
by rock5
It should always be a number. After transporting, maybe you aren't giving it enough time to finish loading before talking to the npc.

Re: problem macro

Posted: Sat Aug 31, 2013 9:16 pm
by Supergala
and how can i must do?
this is my waypoint
]]></onLoad>

<!-- # 1 --><waypoint x="-9687" z="-3300" y="669">
player:target_NPC("Lynn Ringe");
AcceptQuestByName("I Hate That Flavor");
waitForLoadingScreen();
player:target_NPC("Kinger");
CompleteQuestByName("I Hate That Flavor");
</waypoint>
<!-- # 2 --><waypoint x="-8173" z="-7786" y="666">
player:merchant("Loca Roco");
__WPL:setForcedWaypointType("TRAVEL");
player:mount();
</waypoint>

Re: problem macro

Posted: Sun Sep 01, 2013 12:40 am
by rock5
Firstly please use Code tags when pasting code. Just select the code and click the 'Code' button at the top of the edit window.


I'm a bit confused. Line 1780 is in the function AcceptQuestByName which is before the teleport and because it teleported then that means the Accept worked. So it seems the CompleteQuestByName is the function that failed but the line number is wrong. What version of the bot are you using and do you have any edited files (files with red or yellow icons next to them in Explorer)?