Help for complete script
Posted: Thu Sep 13, 2012 5:21 pm
<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<onLoad>
</onLoad>
<!-- # 1 --><waypoint x="2510" z="-1387" y="53" tag="start">
player:target_NPC("Gildenburgverwalter"); ------------------go to Guild Castle
yrest(2000);
sendMacro("ChoiceOption(2);");
waitForLoadingScreen(10);
yrest(2000);
</waypoint>
<!-- # 1 --><waypoint x="0" z="-448" y="5"> </waypoint>
<!-- # 2 --><waypoint x="0" z="-396" y="5"> </waypoint>
<!-- # 3 --><waypoint x="0" z="-361" y="5">
numtoken = inventory:getItemCount(203402); ------------------- if the char has not enough Tempest Height Warrior Necklace for Quest go to Bank
if 30 >= numtoken then
-- Wait for user to use some shells.
__WPL:setWaypointIndex(__WPL:findWaypointTag("goBank"))
end
</waypoint>
<!-- # 4 --><waypoint x="-2" z="-327" y="5" tag="continue"> </waypoint>
<!-- # 5 --><waypoint x="-26" z="-299" y="5"> </waypoint>
<!-- # 6 --><waypoint x="-59" z="-268" y="5"> </waypoint>
<!-- # 7 --><waypoint x="-78" z="-235" y="5">
do player:target_NPC("Gildenquestbrett III"); ------------------ Accept Quest Guild Need Weapons
sendMacro("OnClick_QuestListButton(1,5)");
sendMacro("CompleteQuest()");
sendMacro("CloseWindows()");
end
do player:target_NPC("Gildenquestbrett III"); -------------------- Complett Quest Guild Need Weapons
sendMacro("OnClick_QuestListButton(3,1)");
sendMacro("AcceptQuest()");
sendMacro("CloseWindows()");
yrest(1000);
end
RoMScript("ChangeChar()"); ------------------------- Login Next Char on this Account
waitForLoadingScreen()
__WPL:setWaypointIndex(__WPL:findWaypointTag("start"))
</waypoint>
<!-- # 1 --><waypoint x="0" z="-223" y="5" tag="goBank"> </waypoint>
<!-- # 2 --><waypoint x="-1" z="-60" y="5"> </waypoint>
<!-- # 3 --><waypoint x="0" z="101" y="7"> </waypoint>
<!-- # 4 --><waypoint x="0" z="256" y="7"> </waypoint>
<!-- # 5 --><waypoint x="12" z="439" y="7"> </waypoint>
<!-- # 6 --><waypoint x="27" z="540" y="7"> </waypoint>
<!-- # 7 --><waypoint x="40" z="619" y="7">
player:target_NPC("112062"); ------------ Guild Treasury Switch open
yrest(2000)
local count = 30;
local item = guildbank:findItem("203402")
while ((99 > count) and (item)) do
item:moveTo("bags")
count = count + item.ItemCount;
item = guildbank:findItem("203402");
end
yrest(4000)
player:target_NPC("112062"); ------------ Guild Treasury Switch close
</waypoint>
----- -Here is my problem i don't no how i write to take out one stack of the Questitem of the Bank/ In the Bank are allways item for the quest on index tab one-
<!-- # 9 --><waypoint x="15" z="545" y="7"> </waypoint>
<!-- # 10 --><waypoint x="-10" z="450" y="7"> </waypoint>
<!-- # 11 --><waypoint x="-12" z="308" y="7"> </waypoint>
<!-- # 12 --><waypoint x="-9" z="142" y="7"> </waypoint>
<!-- # 13 --><waypoint x="-7" z="17" y="7"> </waypoint>
<!-- # 14 --><waypoint x="-6" z="-161" y="5"> </waypoint>
<!-- # 15 --><waypoint x="-6" z="-248" y="5">
__WPL:setWaypointIndex(__WPL:findWaypointTag("continue"))
</waypoint>
</waypoints>
<onLoad>
</onLoad>
<!-- # 1 --><waypoint x="2510" z="-1387" y="53" tag="start">
player:target_NPC("Gildenburgverwalter"); ------------------go to Guild Castle
yrest(2000);
sendMacro("ChoiceOption(2);");
waitForLoadingScreen(10);
yrest(2000);
</waypoint>
<!-- # 1 --><waypoint x="0" z="-448" y="5"> </waypoint>
<!-- # 2 --><waypoint x="0" z="-396" y="5"> </waypoint>
<!-- # 3 --><waypoint x="0" z="-361" y="5">
numtoken = inventory:getItemCount(203402); ------------------- if the char has not enough Tempest Height Warrior Necklace for Quest go to Bank
if 30 >= numtoken then
-- Wait for user to use some shells.
__WPL:setWaypointIndex(__WPL:findWaypointTag("goBank"))
end
</waypoint>
<!-- # 4 --><waypoint x="-2" z="-327" y="5" tag="continue"> </waypoint>
<!-- # 5 --><waypoint x="-26" z="-299" y="5"> </waypoint>
<!-- # 6 --><waypoint x="-59" z="-268" y="5"> </waypoint>
<!-- # 7 --><waypoint x="-78" z="-235" y="5">
do player:target_NPC("Gildenquestbrett III"); ------------------ Accept Quest Guild Need Weapons
sendMacro("OnClick_QuestListButton(1,5)");
sendMacro("CompleteQuest()");
sendMacro("CloseWindows()");
end
do player:target_NPC("Gildenquestbrett III"); -------------------- Complett Quest Guild Need Weapons
sendMacro("OnClick_QuestListButton(3,1)");
sendMacro("AcceptQuest()");
sendMacro("CloseWindows()");
yrest(1000);
end
RoMScript("ChangeChar()"); ------------------------- Login Next Char on this Account
waitForLoadingScreen()
__WPL:setWaypointIndex(__WPL:findWaypointTag("start"))
</waypoint>
<!-- # 1 --><waypoint x="0" z="-223" y="5" tag="goBank"> </waypoint>
<!-- # 2 --><waypoint x="-1" z="-60" y="5"> </waypoint>
<!-- # 3 --><waypoint x="0" z="101" y="7"> </waypoint>
<!-- # 4 --><waypoint x="0" z="256" y="7"> </waypoint>
<!-- # 5 --><waypoint x="12" z="439" y="7"> </waypoint>
<!-- # 6 --><waypoint x="27" z="540" y="7"> </waypoint>
<!-- # 7 --><waypoint x="40" z="619" y="7">
player:target_NPC("112062"); ------------ Guild Treasury Switch open
yrest(2000)
local count = 30;
local item = guildbank:findItem("203402")
while ((99 > count) and (item)) do
item:moveTo("bags")
count = count + item.ItemCount;
item = guildbank:findItem("203402");
end
yrest(4000)
player:target_NPC("112062"); ------------ Guild Treasury Switch close
</waypoint>
----- -Here is my problem i don't no how i write to take out one stack of the Questitem of the Bank/ In the Bank are allways item for the quest on index tab one-
<!-- # 9 --><waypoint x="15" z="545" y="7"> </waypoint>
<!-- # 10 --><waypoint x="-10" z="450" y="7"> </waypoint>
<!-- # 11 --><waypoint x="-12" z="308" y="7"> </waypoint>
<!-- # 12 --><waypoint x="-9" z="142" y="7"> </waypoint>
<!-- # 13 --><waypoint x="-7" z="17" y="7"> </waypoint>
<!-- # 14 --><waypoint x="-6" z="-161" y="5"> </waypoint>
<!-- # 15 --><waypoint x="-6" z="-248" y="5">
__WPL:setWaypointIndex(__WPL:findWaypointTag("continue"))
</waypoint>
</waypoints>