Problem with Daily Quest Ticket

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
wiedzmin97
Posts: 44
Joined: Wed Jul 03, 2013 1:37 pm

Problem with Daily Quest Ticket

#1 Post by wiedzmin97 » Thu Aug 01, 2013 10:11 am

Hi, When my bot finish daily quests on Xaviera, i want to he use dAily Quest Ticket.
I use something that :

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">

<waypoints>
<onLoad>
function quest()
local queststate = getQuestStatus("Catch Butterflies")
if queststate == "complete" then
player:mount();
__WPL:setForcedWaypointType("TRAVEL")
end
</onLoad>
</waypoints>

<!-- #  1 --><waypoint x="6408" z="5411" y="170">
   __WPL:setForcedWaypointType("TRAVEL")
   player:target_NPC("Robbie Butcher");
   AcceptQuestByName("Catch Butterflies");
  	local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()");
		if 10 == dailyQuestCount then
	if inventory:itemTotalCount(202434) > 0 then
                 inventory:useItem(202434)
end
   </waypoint>
<!-- # 4 --><waypoint x="6339" z="4882" y="182">
player:mount();
__WPL:setForcedWaypointType("TRAVEL")
</waypoint>
<!-- # 5 --><waypoint x="6435" z="4451" y="182">	</waypoint>
<!-- # 6 --><waypoint x="6503" z="4201" y="182">	</waypoint>
<!-- # 7 --><waypoint x="6530" z="4085" y="204">	</waypoint>
<!-- # 8 --><waypoint x="6551" z="3997" y="204">	</waypoint>
<!-- # 10 --><waypoint x="6572" z="3904" y="204">	</waypoint>
<!-- # 11 --><waypoint x="6605" z="3765" y="172">	</waypoint>
<!-- # 12 --><waypoint x="6834" z="3592" y="173">	</waypoint>
<!-- # 13 --><waypoint x="7031" z="3445" y="190">	</waypoint>
<!-- # 1 --><waypoint x="7135" z="3174" y="190">	</waypoint>
<!-- # 3 --><waypoint x="7360" z="3209" y="182">	</waypoint>
<!-- # 4 --><waypoint x="7342" z="3323" y="181">	</waypoint>
<!-- # 5 --><waypoint x="7449" z="3364" y="181">	</waypoint>
<!-- # 6 --><waypoint x="7514" z="3167" y="182">	</waypoint>
<!-- # 7 --><waypoint x="7631" z="3176" y="181">	</waypoint>
<!-- # 8 --><waypoint x="7662" z="3082" y="182">	</waypoint>
<!-- # 9 --><waypoint x="7555" z="3034" y="181">	</waypoint>
<!-- # 10 --><waypoint x="7541" z="3054" y="181">
queststate = getQuestStatus("Catch Butterflies")
if queststate == "complete" then
__WPL:setDirection(WPT_BACKWARD);
else
__WPL:setForcedWaypointType("NORMAL")
__WPL:setWaypointIndex(__WPL:findWaypointTag("one")); 
end
</waypoint>
<!-- # 12 --><waypoint x="7610" z="2659" tag ='one'>	</waypoint>
<!-- # 13 --><waypoint x="7662" z="2315" y="182">	</waypoint>
<!-- # 14 --><waypoint x="7646" z="2063" y="182">player:mount();	</waypoint>
<!-- # 15 --><waypoint x="7416" z="2033" y="177">player:mount();	</waypoint>
<!-- # 16 --><waypoint x="7104" z="2209" y="176">player:mount();	</waypoint>
<!-- # 17 --><waypoint x="6914" z="2155" y="176">player:mount();	</waypoint>
<!-- # 18 --><waypoint x="6911" z="2450" y="182">player:mount();	</waypoint>
<!-- # 19 --><waypoint x="7425" z="2660" y="181">
queststate = getQuestStatus("Catch Butterflies")
if queststate == "incomplete" then
__WPL:setWaypointIndex(__WPL:findWaypointTag("two"));
else
__WPL:setForcedWaypointType("TRAVEL")
__WPL:setWaypointIndex(__WPL:findWaypointTag("three")); 
end 
</waypoint>
<!-- # 21 --><waypoint x="7400" z="2656" tag ='two'>	</waypoint>
<!-- # 22 --><waypoint x="6991" z="2577" y="181">	</waypoint>
<!-- # 23 --><waypoint x="6211" z="2389" y="181">	</waypoint>
<!-- # 24 --><waypoint x="6261" z="2211" y="182">	</waypoint>
<!-- # 25 --><waypoint x="6356" z="1784" y="182">	</waypoint>
<!-- # 26 --><waypoint x="6537" z="1786" y="181">	</waypoint>
<!-- # 27 --><waypoint x="6689" z="1788" y="178">	</waypoint>
<!-- # 28 --><waypoint x="6769" z="1995" y="177">	</waypoint>
<!-- # 29 --><waypoint x="6927" z="2180" y="177">	</waypoint>
<!-- # 30 --><waypoint x="7015" z="2507" y="181">	</waypoint>
<!-- # 31 --><waypoint x="7611" z="2707" y="182">
queststate = getQuestStatus("Catch Butterflies")
if queststate == "complete" then
__WPL:setWaypointIndex(__WPL:findWaypointTag("three"));
else
__WPL:setForcedWaypointType("TRAVEL")
__WPL:setWaypointIndex(__WPL:findWaypointTag("one")); 
end
</waypoint>
<!-- # 33 --><waypoint x="7610" z="2722" tag ='three'>	</waypoint>
<!-- # 34 --><waypoint x="7534" z="3036" y="181">player:mount();	</waypoint>
<!-- # 35 --><waypoint x="7638" z="3073" y="182">	</waypoint>
<!-- # 36 --><waypoint x="7629" z="3177" y="182">	</waypoint>
<!-- # 37 --><waypoint x="7523" z="3183" y="182">	</waypoint>
<!-- # 38 --><waypoint x="7471" z="3355" y="181">player:mount();	</waypoint>
<!-- # 39 --><waypoint x="7348" z="3326" y="182">	</waypoint>
<!-- # 40 --><waypoint x="7366" z="3204" y="182">	</waypoint>
<!-- # 41 --><waypoint x="7140" z="3172" y="189">player:mount();	</waypoint>
<!-- # 42 --><waypoint x="7031" z="3498" y="189">	</waypoint>
<!-- # 43 --><waypoint x="6621" z="3769" y="173">player:mount();	</waypoint>
<!-- # 44 --><waypoint x="6558" z="3958" y="203">player:mount();	</waypoint>
<!-- # 45 --><waypoint x="6474" z="4284" y="182">	</waypoint>
<!-- # 46 --><waypoint x="6320" z="4903" y="181">player:mount();	</waypoint>
<!-- # 47 --><waypoint x="6350" z="5072" y="182">	</waypoint>
<!-- # 48 --><waypoint x="6427" z="5398" y="177">
queststate = getQuestStatus("Catch Butterflies");
          if queststate == "complete" then
               player:target_NPC("Robbie Butcher");
           CompleteQuestByName("Catch Butterflies")
         end
local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()");
			if 10 == dailyQuestCount then
	if inventory:itemTotalCount(202434) > 0 then
                 inventory:useItem(202434)
                 yrest(1000)
            else
                  player:target_NPC("Robbie Butcher");
                  AcceptQuestByName("Catch Butterflies")
             end
</waypoint>
</waypoints>
But I have this error. Something is bad?

Code: Select all

Did not find any crashed game clients.
5:7pm - scripts\rom/bot.lua:920: Failed to compile and run Lua code for waypoint
 #1

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

Re: Problem with Daily Quest Ticket

#2 Post by rock5 » Thu Aug 01, 2013 10:37 am

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

wiedzmin97
Posts: 44
Joined: Wed Jul 03, 2013 1:37 pm

Re: Problem with Daily Quest Ticket

#3 Post by wiedzmin97 » Thu Aug 01, 2013 11:48 am

ahhh thanks :D i dont see it :D

wiedzmin97
Posts: 44
Joined: Wed Jul 03, 2013 1:37 pm

Re: Problem with Daily Quest Ticket

#4 Post by wiedzmin97 » Thu Aug 01, 2013 1:56 pm

And next problem ;/
I getting error message:

Code: Select all

You chose 12
Loaded waypoint path Nowy dokument tekstowy.xml
No return path with default naming Nowy dokument tekstowy_return.xml found.
We use the normal waypoint path Nowy dokument tekstowy.xml now.
haltOnError:    false
Did not find any crashed game clients.
8:52pm - ...ownloads/rombot/scripts/rom/classes/waypointlist.lua:24: XML Parse E
rror.
File: ...bot/scripts/rom/waypoints/Nowy dokument tekstowy.xml
Line: 31
Column: 14
Pos: 849
Message: junk after document element
What is it? I never had this message ;/

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<waypoints>
<onLoad>
function quest()
local queststate = getQuestStatus("Catch Butterflies")
if queststate == "complete" then
player:mount();
__WPL:setForcedWaypointType("TRAVEL")
end

function quest()
      local queststate = getQuestStatus("Catch Butterflies")
      if queststate == "complete" then
      SlashCommand("run ReturnPet(1)");
      yrest(500)
            RoMScript("SetCameraPosition (0,0,1000000)");
               repeat
               yrest(800)
               player:update()
            until not player.Alive
            RoMScript("BrithRevive();");
            waitForLoadingScreen()
            player:checkSkills(true);
          __WPL:setWaypointIndex(__WPL:findWaypointTag("start"))
      __WPL:setForcedWaypointType("TRAVEL")
      end
   end
</onLoad>
</waypoints>

<!-- #  1 --><waypoint x="6408" z="5411" y="170">		
	 __WPL:setForcedWaypointType("TRAVEL")
   player:target_NPC("Robbie Butcher");
   AcceptQuestByName("Catch Butterflies");
  	local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()");
		if 10 == dailyQuestCount then
	if inventory:itemTotalCount(202434) > 0 then
                 inventory:useItem(202434)
	end
end
	player:target_NPC("Robbie Butcher");
   	AcceptQuestByName("Catch Butterflies");
   </waypoint>
	<!-- #  2 --><waypoint x="6323" z="5065" y="178">	
player:mount();
__WPL:setForcedWaypointType("TRAVEL")
</waypoint>
	<!-- #  3 --><waypoint x="6351" z="4831" y="178">	</waypoint>
	<!-- #  4 --><waypoint x="6447" z="4413" y="178">	</waypoint>
	<!-- #  5 --><waypoint x="6542" z="4014" y="200">	</waypoint>
	<!-- #  6 --><waypoint x="6764" z="3662" y="169">	</waypoint>
	<!-- #  7 --><waypoint x="7016" z="3527" y="186">	</waypoint>
	<!-- #  8 --><waypoint x="7162" z="3136" y="182">	</waypoint>
	<!-- #  9 --><waypoint x="7375" z="3206" y="178">	</waypoint>
	<!-- # 10 --><waypoint x="7340" z="3348" y="178">	</waypoint>
	<!-- # 11 --><waypoint x="7470" z="3372" y="178">	</waypoint>
	<!-- # 12 --><waypoint x="7518" z="3161" y="179">	</waypoint>
	<!-- # 13 --><waypoint x="7645" z="3190" y="178">	</waypoint>
	<!-- # 14 --><waypoint x="7660" z="3066" y="179">	</waypoint>
	<!-- # 15 --><waypoint x="7534" z="3042" y="178">	
__WPL:setForcedWaypointType("NORMAL")				
</waypoint>
	<!-- # 16 --><waypoint x="7577" z="2873" y="179">	</waypoint>
	<!-- # 17 --><waypoint x="7610" z="2622" y="179">	</waypoint>
	<!-- # 18 --><waypoint x="7708" z="2160" y="179">	</waypoint>
	<!-- # 19 --><waypoint x="7793" z="1825" y="178">	</waypoint>
	<!-- # 20 --><waypoint x="7854" z="1589" y="178">	</waypoint>
	<!-- # 21 --><waypoint x="7892" z="1437" y="178">	</waypoint>
	<!-- # 22 --><waypoint x="7823" z="1693" y="178">	</waypoint>
	<!-- # 23 --><waypoint x="7818" z="2056" y="178">	</waypoint>
	<!-- # 24 --><waypoint x="8070" z="2129" y="181">	</waypoint>	
	<!-- # 25 --><waypoint x="7868" z="2088" y="178">	</waypoint>
</waypoints>

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

Re: Problem with Daily Quest Ticket

#5 Post by rock5 » Thu Aug 01, 2013 2:17 pm

In waypoint 1, where the message says the error is, is

Code: Select all

      if 10 == dailyQuestCount then
   if inventory:itemTotalCount(202434) > 0 then
                 inventory:useItem(202434)
end
There are 2 'if's but only 1 'end'. Add an 'end'.
wiedzmin97 wrote:And next problem ;/
I getting error message:
A waypoint file can have only 1 "<waypoints>" to mark the begining of the waypoint file and one "</waypoints>" to mark the end. You have 2 "</waypoints>", 1 at the end of the file and 1 about line 31. Try deleting the 1 at line 31.
  • 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

wiedzmin97
Posts: 44
Joined: Wed Jul 03, 2013 1:37 pm

Re: Problem with Daily Quest Ticket

#6 Post by wiedzmin97 » Fri Aug 02, 2013 8:26 am

Ok, i deleted 1 "</waypoints>" and now i get error:

Code: Select all

Did not find any crashed game clients.
3:23pm - ...ownloads/rombot/scripts/rom/classes/waypointlist.lua:83: Failed to c
ompile and run Lua code for waypointlist onLoad event.
:roll:

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

Re: Problem with Daily Quest Ticket

#7 Post by rock5 » Fri Aug 02, 2013 9:35 am

You have 2 "function quest()", so you are trying to create 2 functions with the same name. Also the first one is short one 'end'.

Actually it looks like this whole bit shouldn't be there

Code: Select all

function quest()
local queststate = getQuestStatus("Catch Butterflies")
if queststate == "complete" then
player:mount();
__WPL:setForcedWaypointType("TRAVEL")
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.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest