Code: Select all
<!-- # 10 --><waypoint x="5528" z="-4382"> </waypoint>
<!-- # 11 --><waypoint x="5534" z="-4432">
player:target_NPC("Lehman");
if RoMScript("IsMagicBoxEnable()");
then
sendMacro("ChoiceOption(1);");yrest(2000);
sendMacro("ChoiceOption(1);");yrest(2000);
RoMScript StoreBuyItem(3, inventory:itemTotalCount(203038)/30);
else
sendMacro("AcceptQuest()"); yrest(1000);
sendMacro("CompleteQuest()"); yrest(1000);
end
</waypoint>
<!-- # 12 --><waypoint x="5525" z="-4379"> </waypoint>
target Lehman and if AT is enabled he should buy charges for all phirius divided by 30 (900 phirius / 30 = 10 charges)
otherwise he shall activate the AT.
but MM encountered an error by compiling and i shall check waypoint #12
he did not buy anything an did not activate the AT so he didn't even worked on #11
€dit:
Code: Select all
<!-- # 10 --><waypoint x="5528" z="-4382"> </waypoint>
<!-- # 11 --><waypoint x="5534" z="-4432">
player:target_NPC("Lehman");
local questCompleted = RoMScript("CheckQuest(421457);");
if questCompleted == 2
then
keyboardPress(key.VK_SPACE);
else
keyboardPress(key.VK_SPACE);
keyboardPress(key.VK_SPACE);
end
</waypoint>
<!-- # 12 --><waypoint x="5525" z="-4379"> </waypoint>
and he jumped twice.
as i put back the a.m. code
Code: Select all
sendMacro("ChoiceOption(1);");yrest(2000);
sendMacro("ChoiceOption(1);");yrest(2000);
RoMScript StoreBuyItem(3, inventory:itemTotalCount(203038)/30);