-
bussdee
- Posts: 37
- Joined: Tue Apr 28, 2009 11:20 am
#1
Post
by bussdee » Tue Aug 10, 2010 9:26 pm
I want to load a new waypoint when finished Dailies, but something is wrong.
scripts\rom/bot.lua:675
Code: Select all
<!-- # 44 --><waypoint x="-4137" z="6074">
player:target_NPC("Sueke Haragen");
sendMacro("OnClick_QuestListButton(3, 1)"); yrest(750);
sendMacro("CompleteQuest()"); yrest(2000);
local dqCount, dqPerDay = RoMScript("Daily_count()");
if 10 == dqCount then
loadPaths("daily.dalanis.streife.haus.xml");
</waypoint>
found another post here like this, but wont work too
Code: Select all
<!-- # 44 --><waypoint x="-4137" z="6074">
player:target_NPC("Sueke Haragen");
sendMacro("OnClick_QuestListButton(3, 1)"); yrest(750);
sendMacro("CompleteQuest()"); yrest(2000);
local dqCount, dqPerDay = RoMScript("Daily_count()");
if (dqPerDay - dqCount) == 0 then
loadPaths("daily.dalanis.streife.haus.xml");
</waypoint>
anyone can help me pls ?
Last edited by
bussdee on Tue Aug 10, 2010 9:39 pm, edited 1 time in total.
"Erfahrung ist fast immer eine Parodie auf die Idee."
Johann Wolfgang von Goethe
-
Valleyguy
- Posts: 100
- Joined: Wed Aug 04, 2010 11:34 pm
- Location: Canada
#2
Post
by Valleyguy » Tue Aug 10, 2010 9:33 pm
bussdee wrote:I want to load a new waypoint when finished Dailies, but something is wrong.
scripts\rom/bot.lua:675
Code: Select all
<!-- # 44 --><waypoint x="-4137" z="6074">
player:target_NPC("Sueke Haragen");
sendMacro("OnClick_QuestListButton(3, 1)"); yrest(750);
sendMacro("CompleteQuest()"); yrest(2000);
local dqCount, dqPerDay = RoMScript("Daily_count()");
if 10 == dqCount then
loadPaths("daily.dalanis.streife.haus.xml");
</waypoint>
anyone can help me pls ?
i'll give you a snippet of how i deal with dailies you can use that to mod to your change paths if you want...
Code: Select all
<onLoad>
local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()");
if 10 == dailyQuestCount then
printf ("You've completed "..dailyQuestCount.." out of " .. dailyQuestsPerDay .. " all done so quitting...")
error("Bot finished", 0); -- Not really an error, but it will drop us back to shell.
else
printf("You've completed "..dailyQuestCount.." out of " .. dailyQuestsPerDay .. " daily quests, leaving " .. dailyQuestsPerDay - dailyQuestCount .. " quests.");
end
</onLoad>
instead of error("Bot finished", 0); you can change this instead to your path (this is after 10 runs of the daily is done)
-
VoidMain
- Posts: 187
- Joined: Wed Apr 21, 2010 12:21 pm
#3
Post
by VoidMain » Tue Aug 10, 2010 9:36 pm
bussdee wrote:I want to load a new waypoint when finished Dailies, but something is wrong.
scripts\rom/bot.lua:675
Code: Select all
<!-- # 44 --><waypoint x="-4137" z="6074">
player:target_NPC("Sueke Haragen");
sendMacro("OnClick_QuestListButton(3, 1)"); yrest(750);
sendMacro("CompleteQuest()"); yrest(2000);
local dqCount, dqPerDay = RoMScript("Daily_count()");
if 10 == dqCount then
loadPaths("daily.dalanis.streife.haus.xml");
</waypoint>
anyone can help me pls ?
You just missing an "end" after the "if":
Code: Select all
<!-- # 44 --><waypoint x="-4137" z="6074">
player:target_NPC("Sueke Haragen");
sendMacro("OnClick_QuestListButton(3, 1)"); yrest(750);
sendMacro("CompleteQuest()"); yrest(2000);
local dqCount, dqPerDay = RoMScript("Daily_count()");
if 10 == dqCount then
loadPaths("daily.dalanis.streife.haus.xml");
end;
</waypoint>
-
Valleyguy
- Posts: 100
- Joined: Wed Aug 04, 2010 11:34 pm
- Location: Canada
#4
Post
by Valleyguy » Tue Aug 10, 2010 9:41 pm
VoidMain wrote:bussdee wrote:I want to load a new waypoint when finished Dailies, but something is wrong.
scripts\rom/bot.lua:675
Code: Select all
<!-- # 44 --><waypoint x="-4137" z="6074">
player:target_NPC("Sueke Haragen");
sendMacro("OnClick_QuestListButton(3, 1)"); yrest(750);
sendMacro("CompleteQuest()"); yrest(2000);
local dqCount, dqPerDay = RoMScript("Daily_count()");
if 10 == dqCount then
loadPaths("daily.dalanis.streife.haus.xml");
</waypoint>
anyone can help me pls ?
You just missing an "end" after the "if":
Code: Select all
<!-- # 44 --><waypoint x="-4137" z="6074">
player:target_NPC("Sueke Haragen");
sendMacro("OnClick_QuestListButton(3, 1)"); yrest(750);
sendMacro("CompleteQuest()"); yrest(2000);
local dqCount, dqPerDay = RoMScript("Daily_count()");
if 10 == dqCount then
loadPaths("daily.dalanis.streife.haus.xml");
end;
</waypoint>
DOH!
-
bussdee
- Posts: 37
- Joined: Tue Apr 28, 2009 11:20 am
#5
Post
by bussdee » Tue Aug 10, 2010 9:42 pm
shame on me, thanks a lot !
I should go to sleep since 4 hours like i planned, missing an "end" ... uuuhhh
but that is what my signature always say. ^^
"Erfahrung ist fast immer eine Parodie auf die Idee."
Johann Wolfgang von Goethe
Who is online
Users browsing this forum: Bing [Bot] and 2 guests