Elven TQ misstake

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Miworax
Posts: 57
Joined: Fri Jan 24, 2014 9:46 am

Elven TQ misstake

#1 Post by Miworax » Tue Jul 21, 2015 6:08 pm

Does anyone see the misstake that happend in this script ? it says that there is a fail in the onload part....

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>	
cprintf(cli.lightgreen,"\n character-WP von ***** \n")

function checkDQCount()
    local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()")
      cprintf(cli.lightblue,"%s quests completed.\n",tostring(dailyQuestCount));
      	if (dailyQuestCount == 10) then
         	cprintf(cli.lightblue,"Completed max number of daily quests, trying to log in next chara.\n");
		SetCharList({
   		{account=21 , chars= {}},
   		{account=22 , chars= {}},
		{account=23 , chars= {}},
		{account=24 , chars= {}},
		{account=25 , chars= {}},
		{account=26 , chars= {}},
		{account=27 , chars= {}},
		)}
		LoginNextChar()
	end
end

function relog()
        SetCharList({
   		{account=21 , chars= {}},
   		{account=22 , chars= {}},
		{account=23 , chars= {}},
		{account=24 , chars= {}},
		{account=25 , chars= {}},
		{account=26 , chars= {}},
		{account=27 , chars= {}},
   		)}

   	if IsLastChar() then 
		player:logout();	
      	else
		LoginNextChar()
        end

SetRestartClientSettings(7, "rom4u")

end

function checkCondition()
	inventory:useItem(201488)
	inventory:useItem(201489)
	inventory:useItem(201482)
	inventory:useItem(201490)
	inventory:useItem(200876)
	inventory:useItem(200877)
	inventory:useItem(200878)
	inventory:useItem(200879)
	yrest(8000);
end;

</onLoad>

	<!-- #  1 --><waypoint x="31853" z="4617" y="11">		player:target_NPC("Blinsik");
	CompleteQuestByName("Wachstumshilfe");
	AcceptQuestByName("Wachstumshilfe");
	checkDQCount()
	</waypoint>
	<!-- #  2 --><waypoint x="31847" z="4661" y="9" type="RUN"> 	</waypoint>
	<!-- #  3 --><waypoint x="31827" z="4792" y="0" type="RUN">	</waypoint>
	<!-- #  4 --><waypoint x="31808" z="4907" y="-3" type="RUN">	</waypoint>
	<!-- #  5 --><waypoint x="31783" z="4983" y="-12" type="RUN"> </waypoint>
	<!-- #  6 --><waypoint x="31746" z="5097" y="-12" type="RUN"> </waypoint>
	<!-- #  7 --><waypoint x="31684" z="5216" y="-24" type="RUN"> </waypoint>
	<!-- #  8 --><waypoint x="31609" z="5356" y="-33" ttype="RUN">
	<!-- #  9 --><waypoint x="31417" z="5714"	tag = "Item">
         queststate = getQuestStatus("Wachstumshilfe")
         if queststate == "incomplete" then
            player:target_Object(112976,500);
            yrest(3000);
            __WPL:setWaypointIndex(__WPL:findWaypointTag("Item"));
         end
	</waypoint>
	<!-- # 10 --><waypoint x="31417" z="5714" y="-33" type="RUN">	</waypoint>
	<!-- # 11 --><waypoint x="31455" z="5654" y="-33" type="RUN">	</waypoint>
	<!-- # 12 --><waypoint x="31554" z="5496" y="-33" type="RUN">	</waypoint>
	<!-- # 13 --><waypoint x="31744" z="5192" y="-16" type="RUN">	</waypoint>
	<!-- # 14 --><waypoint x="31878" z="4979" y="-14" type="RUN">	</waypoint>
	<!-- # 15 --><waypoint x="31875" z="4823" y="-5" type="RUN">	</waypoint>
	<!-- # 16 --><waypoint x="31864" z="4685" y="0"	type="RUN">	</waypoint>			
	player:target_NPC("Blinsik");</waypoint>
</waypoints>
its for the elven TQ


Would be nice if someone can help me :/
Thanks!!!

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

Re: Elven TQ misstake

#2 Post by rock5 » Wed Jul 22, 2015 2:53 am

Here is a tip for finding errors in waypoint onloads youtself, move the whole thing into an lua file. Then when you get an error it will tell you what line it is. Once it's working you can move it back into the onload.

Before:
File: mywaypoint.xml

Code: Select all

<waypoints
<onload>
    some code 
    in the onload
</onload
</waypoints>
After:
File: mywaypoint.xml

Code: Select all

<waypoints
<onload>
    include("tmponload.lua")
</onload
</waypoints>
File: tmponload.lua

Code: Select all

    some code 
    in the onload
I hope that's clear enough. Then just put tmponload in the same folder as the waypoint file.
  • 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

Celesteria
Posts: 36
Joined: Mon Jun 01, 2015 7:44 am

Re: Elven TQ misstake

#3 Post by Celesteria » Wed Jul 22, 2015 7:21 am

Code: Select all

      SetCharList({
         {account=21 , chars= {}},
         {account=22 , chars= {}},
      {account=23 , chars= {}},
      {account=24 , chars= {}},
      {account=25 , chars= {}},
      {account=26 , chars= {}},
      {account=27 , chars= {}},
      )}   <------- should be })
two times :)
I am a botter, but no cheater. So none of my scripts ever use any of the hacks like swimhack, speedhack, wallhack...
I hope you can understand my english. Its not my native language and it has been a long time since I used it the last time :)

Miworax
Posts: 57
Joined: Fri Jan 24, 2014 9:46 am

Re: Elven TQ misstake

#4 Post by Miworax » Wed Jul 22, 2015 8:02 am

Thanks Celesteria, now there is no error :)

but i have a new misstake :/

He just continue the Wp and dont do this :

Code: Select all

         queststate = getQuestStatus("Wachstumshilfe")
         if queststate == "incomplete" then
            player:target_Object(112976,500);
            yrest(3000);
Someone an idea how i can write that he stay at the object and try to get it and only continue the wp if he has complete the TQ ?

or if someone has a working script for this TQ...

User avatar
Bill D Cat
Posts: 555
Joined: Sat Aug 10, 2013 8:13 pm
Location: Deep in the Heart of Texas

Re: Elven TQ misstake

#5 Post by Bill D Cat » Wed Jul 22, 2015 12:28 pm

This is how I would do it.

Code: Select all

repeat
  player:target_Object(112976)
  yrest(3000)
until getQuestStatus("Wachstumshilfe") == "complete" 
Last edited by Bill D Cat on Wed Jul 22, 2015 12:54 pm, edited 1 time in total.

Miworax
Posts: 57
Joined: Fri Jan 24, 2014 9:46 am

Re: Elven TQ misstake

#6 Post by Miworax » Wed Jul 22, 2015 12:48 pm

it dont work.... he continue the wp..... he dont stop there.... Dont know why ....

User avatar
Bill D Cat
Posts: 555
Joined: Sat Aug 10, 2013 8:13 pm
Location: Deep in the Heart of Texas

Re: Elven TQ misstake

#7 Post by Bill D Cat » Wed Jul 22, 2015 12:56 pm

It might be better to use the quest ID rather than the quest name. I'm at work right now, so I can't look it up. I'll find it when I get home unless someone else posts it first. Try changing the ~= "incomplete" to == "complete" and see if that helps.

Miworax
Posts: 57
Joined: Fri Jan 24, 2014 9:46 am

Re: Elven TQ misstake

#8 Post by Miworax » Wed Jul 22, 2015 1:00 pm

the problem is not,,, that he dont accept or complete the quest.... the problem is the part between the WP´s

Code: Select all

	<!-- #  8 --><waypoint x="31609" z="5356" y="-33" type="RUN"> 	</waypoint>
	<!-- #  9 --><waypoint x="31411" z="5716" y="-33" type="RUN"> 	</waypoint>	
	repeat
  	 player:target_Object(112976)
  	 yrest(3000)
	until getQuestStatus("Wachstumshilfe") == "complete"
	<!-- # 10 --><waypoint x="31417" z="5714" y="-33" type="RUN">	</waypoint>
	<!-- # 11 --><waypoint x="31455" z="5654" y="-33" type="RUN">	</waypoint>
he dont care the lines between the Waypoints

User avatar
Bill D Cat
Posts: 555
Joined: Sat Aug 10, 2013 8:13 pm
Location: Deep in the Heart of Texas

Re: Elven TQ misstake

#9 Post by Bill D Cat » Wed Jul 22, 2015 1:07 pm

Oh, well that explains it. Anything that is not inside a <waypoint> and </waypoint> doesn't get run. Move the code up into the previous waypoint and it should work.

Code: Select all

   <!-- #  8 --><waypoint x="31609" z="5356" y="-33" type="RUN">    </waypoint>
   <!-- #  9 --><waypoint x="31411" z="5716" y="-33" type="RUN">    
   repeat
      player:target_Object(112976)
      yrest(3000)
   until getQuestStatus("Wachstumshilfe") == "complete"
   </waypoint>   
   <!-- # 10 --><waypoint x="31417" z="5714" y="-33" type="RUN">   </waypoint>
   <!-- # 11 --><waypoint x="31455" z="5654" y="-33" type="RUN">   </waypoint>

Miworax
Posts: 57
Joined: Fri Jan 24, 2014 9:46 am

Re: Elven TQ misstake

#10 Post by Miworax » Wed Jul 22, 2015 1:12 pm

Iam so stupid.... thanks mate it work now ! :)

Sorrry for that amateur misstake :D

Miworax
Posts: 57
Joined: Fri Jan 24, 2014 9:46 am

Re: Elven TQ misstake

#11 Post by Miworax » Wed Jul 22, 2015 2:27 pm

if he change the Character.... he start on WP 2.... all time... is there any reason for that ?

noobbotter
Posts: 527
Joined: Fri Aug 31, 2012 1:15 pm

Re: Elven TQ misstake

#12 Post by noobbotter » Wed Jul 22, 2015 2:42 pm

you can try adding

Code: Select all

__WPL:setWaypointIndex(1)
to the bottom part of the onLoad section. That should make it always start at 1. Without that, it will start at whichever waypoint it thinks is closer to the player location.

Miworax
Posts: 57
Joined: Fri Jan 24, 2014 9:46 am

Re: Elven TQ misstake

#13 Post by Miworax » Wed Jul 22, 2015 2:47 pm

Dont work.... after he changed first t ime the Character.... he start at Wp 2....

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

Re: Elven TQ misstake

#14 Post by rock5 » Thu Jul 23, 2015 3:15 am

It's probably because you don't reload the waypoint. When you change character at waypoint 1 then it will go to waypoint 2. You can reload the waypoint file after changing character, which is what is usually done so that any code in the onload gets run for each character, or if you don't want to reload the file for whatever reason then try adding the "__WPL:setWaypointIndex(1)" just after changing character, ie. after LoginNextChar().
  • 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

Miworax
Posts: 57
Joined: Fri Jan 24, 2014 9:46 am

Re: Elven TQ misstake

#15 Post by Miworax » Thu Jul 23, 2015 9:53 am

now it work perfectly :) thanks all for this awsome help !

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 5 guests