Ok, I think it would work fine, but I got a new problem. He should only check it, if he has got the kill quest. Now he checks it the whole script so if I have to open the two cages he starts killing mobs.
I tried this:
function settings.profile.events.onLeaveCombat()
questname_1 = "Beseitigt weitere Gefahren";
queststate = getQuestStatus(questname_1)
if queststate == "accepted" then
if queststate == "complete" then
__WPL:setWaypointIndex(__WPL:findWaypointTag("quest1complete"));
end
end
But like I thought it isn't working. Do you know how I have to change it?
function settings.profile.events.onLeaveCombat()
questname_1 = "Beseitigt weitere Gefahren";
queststate = getQuestStatus(questname_1)
if queststate == "complete" then
__WPL:setWaypointIndex(__WPL:findWaypointTag("quest1complete"));
end
end
Remember no matter you do in life to always have a little fun while you are at it
Yes, this is exactly how rock it has posted, the problem is, that the quest npc gives you one quest, if you complete it, an other and then the first quest again. So he only has to check the quest status of the first quest (questname_1). If he has accpted the questname_2 he should ignoe that onLeaveCombat setting.
That's why I used this part:
I can't quite follow what you are saying but getQuestStatus can return the status of only one quest and it can only have one value "not accepted", "accepted" or "complete".
Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
HI, for some reason when I started this way point it just went and tried to kill the vines and wild sigs around. I've tried starting the waypoint when I had the quest, without the quest and when I have the quest finished. None of which the waypoint did anything else apart from just killing the mobs. Please help
rock5 wrote:I can't quite follow what you are saying but getQuestStatus can return the status of only one quest and it can only have one value "not accepted", "accepted" or "complete".
i have tried all the scenarios and i still can not get him to accept the quests anything that i need to look forward too this is the script that I'm using
AngelDrago wrote:i have tried all the scenarios and i still can not get him to accept the quests anything that i need to look forward too this is the script that I'm using
A bit of punctuation is that sentence would have helped.
What is it doing? What do you expect it to do?
I noticed one thing right away, you can't create a 'onleavecombat' section in a waypoint file. You can change the onleavecombat in the onload like this.
if oldOnLeaveCombat == nil then oldOnLeaveCombat = settings.profile.events.onLeaveCombat end
function settings.profile.events.onLeaveCombat()
if oldOnLeaveCombat then oldOnLeaveCombat() end
queststate = getQuestStatus(questname_1)
if queststate == "complete" then
__WPL:setWaypointIndex(__WPL:findWaypointTag("quest1complete"));
end
end
Put that inside the onload section.
Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
AngelDrago wrote:i have tried all the scenarios and i still can not get him to accept the quests anything that i need to look forward too this is the script that I'm using
queststate = getQuestStatus(questname_1);
if queststate == "accepted" then
__WPL:setWaypointIndex(2);
end
queststate = getQuestStatus(questname_2);
if queststate == "accepted" then
__WPL:setWaypointIndex(17);
end
bot this code skip i guess..im change 17 to 21 or index 2 to 9..whatever its going to go 2.waypoint
EDİT:I did it..i changed ;
if queststate == "accepted" then to if queststate == "incomplete" then it works great..
Bot didnt wait when event finished.Add some function but didnt change anything also this function cause it crazy bot take quest 1 but go to quest 2 waypoint etc..Anyone has a good work one this John Carter quest's ? or help
note:im using dailynotes so delete questaccept lines
You need to understand that setWaypointIndex doesn't immediately go to that waypoint, it only sets the next waypoint it is going to go to. If the first quest is "incomplete" and it sets the waypoint index to 2, it will then finish the code in the waypoint that checks the second quest. If the second quest is also "incomplete" then the waypoint index will be set to 17. The eay way to fix it is to add a return after setting the waypoint index.
queststate1 = getQuestStatus(questname_1);
queststate2 = getQuestStatus(questname_2);
if queststate1 == "incomplete" then
...
elseif queststate2 == "incomplete" then
...
end
Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
rock5 wrote:You need to understand that setWaypointIndex doesn't immediately go to that waypoint, it only sets the next waypoint it is going to go to. If the first quest is "incomplete" and it sets the waypoint index to 2, it will then finish the code in the waypoint that checks the second quest. If the second quest is also "incomplete" then the waypoint index will be set to 17. The eay way to fix it is to add a return after setting the waypoint index.
queststate1 = getQuestStatus(questname_1);
queststate2 = getQuestStatus(questname_2);
if queststate1 == "incomplete" then
...
elseif queststate2 == "incomplete" then
...
end
sorry master forgot again and thanks for help ^_^ i ll try it.i hope so waitevent function works now
after the waypoint didn't work for me and i know how it is to search the problem in all the millions of posts, although the others could just upload the fixed version, which would make it much more easier, i decided to upload my version^^
i think it should work for everybody (with every language client, not just with the english version)
murmanov wrote:IMPORTANT!!! FOR ALL THE SEARCHING ONES^^
after the waypoint didn't work for me and i know how it is to search the problem in all the millions of posts, although the others could just upload the fixed version, which would make it much more easier, i decided to upload my version^^
i think it should work for everybody (with every language client, not just with the english version)