Page 1 of 1

litle help with daily Q

Posted: Sun Nov 11, 2012 9:54 am
by lolita
Daily, Curse of Terror and take PFS script

Description:
Script for 69-80lv characters on Nexon Runes of Magic server
(must have opened rorazan teleport)

Features:
*Daily Quest "Extinguish More Flames"
*Take PFS if lv 80
*Do Curse of Terror minigame (Rock5 script included)
*You can change options on the top of the file

Requirements:
*userfunction_worldtraveler
*userfunction_teleport
*userfunction_swimhack
*GroupInvite addon latest version, you can find it here: http://rom.curseforge.com/addons/groupi ... -v2-3-902/

Important:
when you are first time on character, you must set GroupInvite addon:
Group Name: More flames (or something you like)
Keyword: inv (that's best option)
check options: monitor zona chat, monitor whisper chat and shout on zona chat
close addon and you are ready to go

thx Rock5 and lisa for help

Re: litle help with daily Q

Posted: Sun Nov 11, 2012 6:31 pm
by rock5
queststate and questcount don't change unless you update them. So you need to update them in the loop or call the functions when needed. Try

Code: Select all

		function HaveDaily()
			local queststate 			
			repeat
				yrest(1000) -- check every second
				queststate = getQuestStatus("Extinguish More Flames")
				if queststate == "complete" then
					-- Complete quest
					player:target_NPC("Diandon");
					CompleteQuestByName("Extinguish More Flames","daily"); yrest(1000);
				end
				queststate = getQuestStatus("Extinguish More Flames")
				if queststate ~= "incomplete" then
					-- Accept quest
					player:target_NPC("Diandon");
					AcceptQuestByName("Extinguish More Flames","daily"); yrest(1000);
				end            
			until RoMScript("Daily_count()") > 9
			__WPL:setWaypointIndex(__WPL:findWaypointTag("GoVar"));
		end
I got rid of the "if questcount > 9 then" because it can only exit the loop if > 9 so it will always be > 9 at that point. Actually if "GoVar" is going to be waypoint 2 you don't even need that "findWaypointTag" line.

Re: litle help with daily Q

Posted: Sun Nov 11, 2012 9:12 pm
by zeljomir
this seams promising.. will try it ty lolita and rock5

Re: litle help with daily Q

Posted: Mon Nov 12, 2012 9:05 am
by lolita
ok i done some testing, for some reason it didin't want to turn in Q, so i changde from

Code: Select all

CompleteQuestByName("Extinguish More Flames","daily"); yrest(1000);
to

Code: Select all

CompleteQuestByName("Extinguish More Flames"); yrest(1000);
RoMScript("CompleteQuest()");
and it work now.
But when finish all daily Q, it accept public Q, wich can be problem, cose if next day you have accepted public and daily at the same time, you can't finish Q.
I tryed to add

Code: Select all

CancelQuest("Extinguish More Flames")
CancelQuest(425182)
at waipoint 2, to abandon public Q after finishing daily, but it dont work from WP , however command work from command line.
Any gues what cose the problem :?:

Re: litle help with daily Q

Posted: Mon Nov 12, 2012 9:19 am
by rock5
What version of the bot are you using? Is it having trouble accepting or completing the daily quest or both? Do you still have the old questbyname userfunction installed?

If you use the quest id without specifying the quest type then it should get the type from memory and accept the correct one, ie. this should work.

Code: Select all

CompleteQuestByName(425186);

Re: litle help with daily Q

Posted: Mon Nov 12, 2012 10:07 am
by lolita
MicroMacro v1.01 beta 4
RoM Bot Version 3.29. Revision 739 (nexon server still at 5.0.3 patch)
JackBlonder's Quest functions Version 0.97
that's what i use, i think it's up to date
Is it having trouble accepting or completing the daily quest or both?
like i said, it take daily and complete it.
but after finishing 10 daily's , then it take public Q and go to wp2 => wp3 =>(teleport to varanas)

Re: litle help with daily Q

Posted: Mon Nov 12, 2012 10:46 am
by rock5
lolita wrote:JackBlonder's Quest functions Version 0.97
These functions were added to the bot a long time ago and a lot of functionality has been added, such as using quest ids and being able to specify the type of quest (daily or public). These options are not available in the old userfunction. Just remove it so it can use the bot ones.

Re: litle help with daily Q

Posted: Mon Nov 12, 2012 11:24 am
by lolita
yep, that was the problem, i removed userffunction_QuestByName and it work now :)
ty rock5
i'll post file here when i finish it.

Re: litle help with daily Q

Posted: Thu Nov 15, 2012 4:45 am
by lolita
ok i almost done it, just have 1 litle problem, when char enter zone, it try to get party

Code: Select all

function TryGetParty()
		local party = RoMScript("GetNumPartyMembers()")
		local raid = RoMScript("GetNumRaidMembers()")
		if ((not (party > 0)) or (not (raid > 0))) then
			sendMacro("SendChatMessage('inv','ZONE');")
			yrest(7000);
			RoMScript("AcceptGroup();")
		end
	end
and if someone already started "GroupInvite" addon, it accsept party and do the rest of script.
But if you dont have party, then it start "GroupInvite" addon

Code: Select all

function DoDaily()
		local party = RoMScript("GetNumPartyMembers()")
		local raid = RoMScript("GetNumRaidMembers()")
		local queststate 
		if ((not (party > 0)) or (not (raid > 0))) then                                -- problem is here
			RoMScript("GroupInvite_Group_StartStop(true)")                               -- in this loop
			repeat
				yrest(5000);
			until ((party > 0) or (raid > 0))                                          -- just dont know how to fix it :D
		end
		repeat
			yrest(1000) -- check every second
			queststate = getQuestStatus("Extinguish More Flames")
				if queststate == "complete" then
					-- Complete quest
					player:target_NPC("Diandon");
					CompleteQuestByName(425186); yrest(1000);
				end
				if queststate ~= "incomplete" then
					-- Accept quest
					player:target_NPC("Diandon");
					AcceptQuestByName(425186); yrest(1000);
				end
		until RoMScript("Daily_count()") > 9
	end
and when someone joins party, it just stand there and do nothing.
P.S.
Rock5, can i use code from your script CoT_tele in my script?
If not, ill just put >>loadPaths("cot_tele");<<

Re: litle help with daily Q

Posted: Thu Nov 15, 2012 4:50 am
by rock5
lolita wrote:Rock5, can i use code from your script CoT_tele in my script?
If not, ill just put >>loadPaths("cot_tele");<<
Sure you can.

Re: litle help with daily Q

Posted: Thu Nov 15, 2012 4:50 am
by lisa

Code: Select all

      local party = RoMScript("GetNumPartyMembers()")
      local raid = RoMScript("GetNumRaidMembers()")
      local queststate 
      if ((not (party > 0)) or (not (raid > 0))) then                                -- problem is here
         RoMScript("GroupInvite_Group_StartStop(true)")                               -- in this loop
         repeat
            yrest(5000);
         until ((party > 0) or (raid > 0))                                          -- just dont know how to fix it :D
      end
you need to update the values for party and raid, otherwise they will never change.

Code: Select all

      local party = RoMScript("GetNumPartyMembers()")
      local raid = RoMScript("GetNumRaidMembers()")
      local queststate 
      if ((not (party > 0)) or (not (raid > 0))) then                                -- problem is here
         RoMScript("GroupInvite_Group_StartStop(true)")                               -- in this loop
         repeat
            yrest(5000);
            party = RoMScript("GetNumPartyMembers()")
            raid = RoMScript("GetNumRaidMembers()")
         until ((party > 0) or (raid > 0))                                          -- just dont know how to fix it :D
      end

Re: litle help with daily Q

Posted: Thu Nov 15, 2012 1:38 pm
by lolita
I edited first post, and put script there.
Now if it's posible to make something like umm_userfunction for Groupinvite addon, to do just 4 basic function of addon:
1.Set group name
2.Keyword
3.Check options: monitor zona chat, monitor whisper chat and shout on zona chat
4.Start/Stop
It can be usefull and for others Quest too, like butterfly's.

Or even better, we dont need addon at all.
Something like this:
send zona messige, like addon do (New "more flames" group started, type "inv" for join) -- repeat this every 5-7 min
monitor zona chat, if someone type "inv" invite that player to party
monitor chat until 6 players in party

Re: litle help with daily Q

Posted: Thu Nov 15, 2012 5:49 pm
by lisa
lolita wrote:I edited first post, and put script there.
very nicely written post (first post), I should get you to write mine lol
lolita wrote:send zona messige, like addon do (New "more flames" group started, type "inv" for join) -- repeat this every 5-7 min
monitor zona chat, if someone type "inv" invite that player to party
monitor chat until 6 players in party
This is possible of course.

I would probably go with the first choice of using the existing addon, just a matter of looking at the addon code to find out what functions need to be used and how they need to be used.

Re: litle help with daily Q

Posted: Fri Nov 16, 2012 9:38 pm
by zeljomir
wp is cool and wery usful...

just 1 litle thing.... can you change name of this topic :D ppl dont know what is it by reading "litle help with daily Q"..

Re: litle help with daily Q

Posted: Sat Nov 17, 2012 12:36 am
by lisa
zeljomir wrote:wp is cool and wery usful...

just 1 litle thing.... can you change name of this topic :D ppl dont know what is it by reading "litle help with daily Q"..
Well now that the Wp looks finished, lolita could post it in the userfunction section, with an appropriate title =)

Re: litle help with daily Q

Posted: Sun Dec 29, 2013 9:39 pm
by kuripot
this waypoint can do alone or need a party?? how can i do alone

Re: litle help with daily Q

Posted: Tue Jan 21, 2014 8:56 pm
by lolita
kuripot wrote:this waypoint can do alone or need a party?? how can i do alone
for this one you need party, v1.1 have "move" option, so you can do quest alone, you can finde it here