Page 1 of 1
Can someone help pls?
Posted: Tue Jan 03, 2012 9:32 am
by Marrow
Hey Guys im a to low for this sry i look in the wiki and i dont understand this....
So the .xml script is this one:
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<!-- # 1 --><waypoint x="31847" z="4592" tag ='Main'>
local dqCount, dqPerDay = RoMScript("Daily_count()");
if 10 > dqCount then
queststate = getQuestStatus("Helping Them Grow");
if queststate == "complete" then
-- Complete quest
player:target_NPC("Blinsik");
sendMacro("CompleteQuest()"); yrest(2000);
-- Accept quest
player:target_NPC("Blinsik");
sendMacro("AcceptQuest()"); yrest(2000);
--__WPL:setWaypointIndex(__WPL:findWaypointTag("Main"));
else
-- Accept quest
player:target_NPC("Blinsik");
sendMacro("AcceptQuest()"); yrest(2000);
end
else
player:logout();
end
</waypoint>
<!-- # 2 --><waypoint x="31812" z="4849"> </waypoint>
<!-- # 3 --><waypoint x="31415" z="5720" tag = "Item">
queststate = getQuestStatus("Helping Them Grow")
if queststate == "incomplete" then
player:target_NPC("Cleansing Crystal");
yrest(3000);
__WPL:setWaypointIndex(__WPL:findWaypointTag("Item"));
end
while 1 > inventory:getItemCount(204840) do
player:target_Object(112976,500);
yrest(100);
end;
</waypoint>
<!-- # 4 --><waypoint x="31878" z="4692"> </waypoint>
<!-- # 5 --><waypoint x="31843" z="4593"> </waypoint>
</waypoints>
1.Problem he dont complete the quest.
2.Problem he use the item two times.
3.Problem when i delete this one :else
player:logout();
end
and the bot dont work.
4.Problem i will use the daylie ticket.
I know its many but i dont understand it.
I test a many things but nothing works.
Please help me dumb a**
Re: Can someone help pls?
Posted: Tue Jan 03, 2012 10:06 am
by lisa
1. For most NPC when you click them you first need to click the quest before being able to accept or complete the quest. Easiest solution to this is just to get the userfunction here
http://www.solarstrike.net/phpBB3/viewt ... =27&t=2184
2. Not sure what you mean in this bit.
3. you can delete the else player:logout() but you shouldn't delete the end as it is still needed in the code.
4. I can't see any usage in your code for daily reset tickets, are you asking how to use them?
Something like this should work, I found it using forum search for "daily reset"
Code: Select all
local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()");
if 10 == dailyQuestCount then
if inventory:itemTotalCount(202434) >= 1 then
inventory:useItem(202434);
else
printf("No Daily Reset Cards left!\n")
player:sleep();
end
end
This is what I used to use for elf daily quest.
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<!-- # 1 --><waypoint x="31953" z="3272" y="22"> player:target_NPC("Gamunhan");
AcceptQuestByName("getting to know yourself")
player:target_NPC("Gamunhan");
CompleteQuestByName()
</waypoint>
<!-- # 8 --><waypoint x="31987" z="3368" y="6"> </waypoint>
<!-- # 22 --><waypoint x="32061" z="3391" y="5"> </waypoint>
<!-- # 23 --><waypoint x="32212" z="3354" y="28"> </waypoint>
<!-- # 24 --><waypoint x="32288" z="3346" y="28"> player:target_NPC("Daily Quest Manager");
AcceptQuestByName()
player:target_NPC("Daily Quest Manager");
CompleteQuestByName()
</waypoint>
<!-- # 29 --><waypoint x="32264" z="3338" y="28"> </waypoint>
<!-- # 30 --><waypoint x="32157" z="3403" y="12"> </waypoint>
<!-- # 31 --><waypoint x="31897" z="3886" y="12"> </waypoint>
<!-- # 32 --><waypoint x="31842" z="4150" y="32"> </waypoint>
<!-- # 33 --><waypoint x="31847" z="4230" y="37"> </waypoint>
<!-- # 34 --><waypoint x="31939" z="4360" y="33"> </waypoint>
<!-- # 35 --><waypoint x="31966" z="4437" y="15"> </waypoint>
<!-- # 36 --><waypoint x="31921" z="4517" y="6"> </waypoint>
<!-- # 1 --><waypoint x="31847" z="4592" tag ='Main'>
queststate = getQuestStatus("Helping them Grow");
if queststate == "complete" then
player:target_NPC("Blinsik");
CompleteQuestByName("helping them grow")
end
local dqCount, dqPerDay = RoMScript("Daily_count()");
if dqCount == 10 then
sendMacro("}LoginNextToon=true;a={")
sendMacro("Logout();");
waitForLoadingScreen();
loadPaths("elf2");
else
player:target_NPC("Blinsik");
AcceptQuestByName("helping them grow")
end
</waypoint>
<!-- # 2 --><waypoint x="31812" z="4849"> </waypoint>
<!-- # 3 --><waypoint x="31415" z="5720" tag = "Item">
queststate = getQuestStatus("Helping them Grow")
if queststate == "incomplete" then
player:target_Object(112976,500);
yrest(3000);
__WPL:setWaypointIndex(__WPL:findWaypointTag("Item"));
end
</waypoint>
<!-- # 4 --><waypoint x="31878" z="4692"> </waypoint>
<!-- # 5 --><waypoint x="31843" z="4593"> __WPL:setWaypointIndex(__WPL:findWaypointTag("Main")); </waypoint>
</waypoints>
If you want to use it make sure you get the userfunction I put a link to at the top of post, QuestByName.
Re: Can someone help pls?
Posted: Tue Jan 03, 2012 11:08 am
by Marrow
Ok thank you very much with your fast answer!
I try your script but he didnt found the crystal.
And i dont know how i use the daylie item ticket when i test it come an error.
This is my new script:
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<!-- # 1 --><waypoint x="31847" z="4592" tag ='Main'>
local dqCount, dqPerDay = RoMScript("Daily_count()");
if 10 > dqCount then
queststate = getQuestStatus("Helping Them Grow");
if queststate == "complete" then
-- Complete quest
player:target_NPC("Blinsik");
sendMacro("CompleteQuest()"); yrest(2000);
-- Accept quest
player:target_NPC("Blinsik");
sendMacro("AcceptQuest()"); yrest(2000);
--__WPL:setWaypointIndex(__WPL:findWaypointTag("Main"));
else
-- Accept quest
player:target_NPC("Blinsik");
sendMacro("AcceptQuest()"); yrest(2000);
end
local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()");
if 10 == dailyQuestCount then
if inventory:itemTotalCount(202434) >= 1 then
inventory:useItem(202434);
else
printf("No Daily Reset Cards left!\n")
player:sleep();
end
end
</waypoint>
<!-- # 2 --><waypoint x="31812" z="4849"> </waypoint>
<!-- # 3 --><waypoint x="31415" z="5720" tag = "Item">
queststate = getQuestStatus("Helping Them Grow")
if queststate == "incomplete" then
player:target_NPC("Cleansing Crystal");
yrest(3000);
__WPL:setWaypointIndex(__WPL:findWaypointTag("Item"));
end
while 1 > inventory:getItemCount(204840) do
player:target_Object(112976,500);
yrest(100);
end;
</waypoint>
<!-- # 4 --><waypoint x="31878" z="4692"> </waypoint>
<!-- # 5 --><waypoint x="31843" z="4593"> </waypoint>
</waypoints>
But this error I didnt come to the waypoint 2.
And he do nothing.
What is wrong?
Re: Can someone help pls?
Posted: Tue Jan 03, 2012 11:24 am
by lisa
First glance I would say you don't have the correct number of end in the code in waypoint 1.
Marrow wrote:I try your script but he didnt found the crystal.
So it didn't collect the item at all? I don't understand why it wouldn't.
Re: Can someone help pls?
Posted: Tue Jan 03, 2012 11:32 am
by Marrow
Tyyyyyy Lisa

Its Done.
I change the language from Ger in English.
And look...DONE!
I take your last script.
Thank you very much i hope he use the daylie Ticket and answer when he done!
Sry for my bad english

Re: Can someone help pls?
Posted: Tue Jan 03, 2012 11:44 am
by Marrow
So he use the daylie ticket its very nice!
But the last problem is.
1. He use the Ticket but to fast for take the next Quest
and he run to the crystal without the Quest
Can we take a 2 sec stop phase to take the quest once he use the daylie ticket?
Re: Can someone help pls?
Posted: Tue Jan 03, 2012 8:04 pm
by lisa
k try this
Re: Can someone help pls?
Posted: Tue Jan 03, 2012 9:24 pm
by Marrow
Ty very much!!!
The Bot is like a charm and you are a god
No I can do my daylies and can look a Video
