litle help with daily Q

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
lolita
Posts: 139
Joined: Thu Oct 20, 2011 5:39 am
Location: Serbia

litle help with daily Q

#1 Post by lolita » Sun Nov 11, 2012 9:54 am

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
Attachments
Extinguish_Flames_by_lolita.xml
v1.0
(12.46 KiB) Downloaded 344 times
Last edited by lolita on Thu Nov 15, 2012 1:13 pm, edited 1 time in total.
Life is a journey, not destination :D

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: litle help with daily Q

#2 Post by rock5 » Sun Nov 11, 2012 6:31 pm

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.
  • 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.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

zeljomir
Posts: 47
Joined: Fri Jun 22, 2012 3:41 pm

Re: litle help with daily Q

#3 Post by zeljomir » Sun Nov 11, 2012 9:12 pm

this seams promising.. will try it ty lolita and rock5

User avatar
lolita
Posts: 139
Joined: Thu Oct 20, 2011 5:39 am
Location: Serbia

Re: litle help with daily Q

#4 Post by lolita » Mon Nov 12, 2012 9:05 am

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 :?:
Life is a journey, not destination :D

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: litle help with daily Q

#5 Post by rock5 » Mon Nov 12, 2012 9:19 am

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);
  • 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.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

User avatar
lolita
Posts: 139
Joined: Thu Oct 20, 2011 5:39 am
Location: Serbia

Re: litle help with daily Q

#6 Post by lolita » Mon Nov 12, 2012 10:07 am

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)
Life is a journey, not destination :D

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: litle help with daily Q

#7 Post by rock5 » Mon Nov 12, 2012 10:46 am

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.
  • 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.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

User avatar
lolita
Posts: 139
Joined: Thu Oct 20, 2011 5:39 am
Location: Serbia

Re: litle help with daily Q

#8 Post by lolita » Mon Nov 12, 2012 11:24 am

yep, that was the problem, i removed userffunction_QuestByName and it work now :)
ty rock5
i'll post file here when i finish it.
Life is a journey, not destination :D

User avatar
lolita
Posts: 139
Joined: Thu Oct 20, 2011 5:39 am
Location: Serbia

Re: litle help with daily Q

#9 Post by lolita » Thu Nov 15, 2012 4:45 am

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");<<
Life is a journey, not destination :D

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: litle help with daily Q

#10 Post by rock5 » Thu Nov 15, 2012 4:50 am

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.
  • 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.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: litle help with daily Q

#11 Post by lisa » Thu Nov 15, 2012 4:50 am

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
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

User avatar
lolita
Posts: 139
Joined: Thu Oct 20, 2011 5:39 am
Location: Serbia

Re: litle help with daily Q

#12 Post by lolita » Thu Nov 15, 2012 1:38 pm

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
Life is a journey, not destination :D

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: litle help with daily Q

#13 Post by lisa » Thu Nov 15, 2012 5:49 pm

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.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

zeljomir
Posts: 47
Joined: Fri Jun 22, 2012 3:41 pm

Re: litle help with daily Q

#14 Post by zeljomir » Fri Nov 16, 2012 9:38 pm

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"..

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: litle help with daily Q

#15 Post by lisa » Sat Nov 17, 2012 12:36 am

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 =)
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

kuripot
Posts: 493
Joined: Mon Nov 07, 2011 9:14 pm

Re: litle help with daily Q

#16 Post by kuripot » Sun Dec 29, 2013 9:39 pm

this waypoint can do alone or need a party?? how can i do alone

User avatar
lolita
Posts: 139
Joined: Thu Oct 20, 2011 5:39 am
Location: Serbia

Re: litle help with daily Q

#17 Post by lolita » Tue Jan 21, 2014 8:56 pm

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
Life is a journey, not destination :D

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Semrush [Bot] and 11 guests