EoJ on Tergothen Bay

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
nergalpl
Posts: 4
Joined: Fri Apr 04, 2014 7:00 am

EoJ on Tergothen Bay

#1 Post by nergalpl » Fri Apr 04, 2014 7:06 am

Hi, I'm looking for a script on Energy of Justice on Tergothen Bay , quest from John Carter with Ankes Gang.

I found one script, but it isn't working. Bot try to target npc , get quest and do this all time...

If you can please send me or help with this script.

nergalpl
Posts: 4
Joined: Fri Apr 04, 2014 7:00 am

Re: EoJ on Tergothen Bay

#2 Post by nergalpl » Fri Apr 04, 2014 11:31 am

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
<onload>
temp = 0
questname_1 = "Continue to Clean up the Threats to the Fishing Village";
questname_2 = "Immediate Relief";

	function EventTimer()
		repeat
		 TBES = RoMScript('getevmessage()')
		until (TBES ==  "|cffffff80Regional event now restarting!|r")
		printf("Am inceput !");
	end	

	function Chek_Quest()	
		queststate = getQuestStatus(questname_1);
		if queststate == "complete" then
			player:update()
			temp = 0
			__WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"))	
		else temp = 1		
		end				
	end	



		
</onload> 

	<!-- #  1 --><waypoint x="-27527" z="24360" y="-83">	
		player:target_NPC("John Carter")	
		CompleteQuestByName("Continue to Clean up the Threats to the Fishing Village");

		repeat		
			player:target_NPC("John Carter") 	
			AcceptQuestByName("Continue to Clean up the Threats to the Fishing Village");
			cprintf(cli.white, questname_1.."\n")		
		
	</waypoint>
	<!-- #  2 --><waypoint x="-27576" z="24330" y="-80">	</waypoint>
	<!-- #  3 --><waypoint x="-27636" z="24298" y="-66">	</waypoint>
	<!-- #  4 --><waypoint x="-27649" z="24236" y="-21">	</waypoint>
	<!-- #  5 --><waypoint x="-27699" z="24144" y="17">	</waypoint>
	<!-- #  6 --><waypoint x="-27757" z="24072" y="1" type="TRAVEL">	</waypoint>
	<!-- #  7 --><waypoint x="-27803" z="24013" y="0" type="TRAVEL">	</waypoint>
	<!-- #  8 --><waypoint x="-27839" z="23973" y="0" type="TRAVEL">	</waypoint>
	<!-- #  9 --><waypoint x="-27866" z="23941" y="2">	</waypoint>
	<!-- # 10 --><waypoint x="-27907" z="23903" y="2">	</waypoint>
	<!-- # 11 --><waypoint x="-27986" z="23883" y="2">	</waypoint>
	<!-- # 12 --><waypoint x="-28033" z="23897" y="8">	</waypoint>
	<!-- # 13 --><waypoint x="-28005" z="23935" y="0">	</waypoint>
	<!-- # 14 --><waypoint x="-27973" z="23978" y="2" tag="reQ1"> Chek_Quest(); </waypoint>
	<!-- # 15 --><waypoint x="-28001" z="24017" y="1"> Chek_Quest(); </waypoint>
	<!-- # 16 --><waypoint x="-28046" z="24042" y="3"> Chek_Quest(); </waypoint>
	<!-- # 17 --><waypoint x="-28120" z="23999" y="7"> Chek_Quest(); </waypoint>
	<!-- # 18 --><waypoint x="-28147" z="23952" y="11"> Chek_Quest(); </waypoint>
	<!-- # 19 --><waypoint x="-28185" z="23913" y="3"> Chek_Quest(); </waypoint>
	<!-- # 20 --><waypoint x="-28235" z="23911" y="2"> Chek_Quest(); </waypoint>
	<!-- # 21 --><waypoint x="-28289" z="23922" y="1"> Chek_Quest(); </waypoint>
	<!-- # 22 --><waypoint x="-28338" z="23951" y="8"> Chek_Quest(); </waypoint>
	<!-- # 23 --><waypoint x="-28354" z="24002" y="9"> Chek_Quest(); </waypoint>
	<!-- # 24 --><waypoint x="-28338" z="24052" y="6"> Chek_Quest(); </waypoint>
	<!-- # 25 --><waypoint x="-28292" z="24084" y="0"> Chek_Quest(); </waypoint>
	<!-- # 26 --><waypoint x="-28237" z="24098" y="0"> Chek_Quest(); </waypoint>
	<!-- # 27 --><waypoint x="-28136" z="24099" y="5"> Chek_Quest(); </waypoint>
	<!-- # 28 --><waypoint x="-28040" z="24095" y="-4">
		Chek_Quest();
		if temp == 1 then
		__WPL:setWaypointIndex(__WPL:findWaypointTag("reQ1"))	
		end
	</waypoint>
	<!-- # 29 --><waypoint x="-27948" z="24092" y="-3"> Chek_Quest(); </waypoint>
	<!-- # 30 --><waypoint x="-27862" z="24089" y="-2"> Chek_Quest(); </waypoint>
	<!-- # 31 --><waypoint x="-27789" z="24106" y="2"> Chek_Quest(); </waypoint>
	<!-- # 32 --><waypoint x="-27726" z="24145" y="13">	</waypoint>
	<!-- # 33 --><waypoint x="-27655" z="24213" y="-8">	</waypoint>
	<!-- # 34 --><waypoint x="-27597" z="24273" y="-70">	</waypoint>
	<!-- # 35 --><waypoint x="-27555" z="24323" y="-82">	</waypoint>
	<!-- # 36 --><waypoint x="-27540" z="24340" y="-83" type="TRAVEL" tag="rerun">
		player:target_NPC("John Carter")
		AcceptQuestByName("Immediate Relief");
		--yrest(200)
	repeat	
		--quest2 = RoMScript("CheckQuest(424624)");	
		player:target_NPC("John Carter")		
		AcceptQuestByName("Immediate Relief");
		cprintf(cli.white, questname_2.."\n")
		</waypoint>
	<!-- # 37 --><waypoint x="-27563" z="24326" y="-81" type="RUN">	</waypoint>
	<!-- # 38 --><waypoint x="-27618" z="24300" y="-71" type="RUN">	</waypoint>
	<!-- # 39 --><waypoint x="-27635" z="24293" y="-65" type="RUN">	</waypoint>
	<!-- # 40 --><waypoint x="-27649" z="24237" y="-22" type="RUN">	</waypoint>
	<!-- # 41 --><waypoint x="-27673" z="24187" y="4" type="RUN">	</waypoint>
	<!-- # 42 --><waypoint x="-27712" z="24137" y="16" type="RUN">	</waypoint>
	<!-- # 43 --><waypoint x="-27761" z="24081" y="1" type="RUN">	</waypoint>
	<!-- # 44 --><waypoint x="-27799" z="24022" y="0" type="RUN">	</waypoint>
	<!-- # 45 --><waypoint x="-27817" z="24014" y="0" type="RUN" tag="reQ2">player:target_Object("Thieves' Prisoner");player:harvest();</waypoint>
	<!-- # 46 --><waypoint x="-27855" z="23964" y="1" type="RUN">	</waypoint>
	<!-- # 47 --><waypoint x="-27875" z="23944" y="4" type="RUN">	</waypoint>
	<!-- # 48 --><waypoint x="-27889" z="23930" y="5" type="RUN">
	queststate = getQuestStatus("Immediate Relief");
    	while queststate == "incomplete" do		
	player:target_Object("Thieves' Prisoner");
		player:harvest();
		if getQuestStatus(questname_2) ~= "complete" then 
			__WPL:setWaypointIndex(__WPL:findWaypointTag("reQ2"))
		--	else cprintf(cli.green, questname_2.."\n")
		end
	</waypoint>
	<!-- # 49 --><waypoint x="-27866" z="23952" y="3" type="TRAVEL">	</waypoint>
	<!-- # 50 --><waypoint x="-27808" z="24010" y="0" type="TRAVEL">	</waypoint>
	<!-- # 51 --><waypoint x="-27749" z="24069" y="1" type="TRAVEL">	</waypoint>
	<!-- # 52 --><waypoint x="-27687" z="24146" y="14" type="TRAVEL">	</waypoint>
	<!-- # 53 --><waypoint x="-27627" z="24216" y="-15" type="TRAVEL">	</waypoint>
	<!-- # 54 --><waypoint x="-27572" z="24286" y="-73" type="TRAVEL">	</waypoint>
	<!-- # 55 --><waypoint x="-27534" z="24337" y="-84" type="TRAVEL">	</waypoint>
</waypoints>
I use this script, but he crashed after finished quest. Help me please.

nergalpl
Posts: 4
Joined: Fri Apr 04, 2014 7:00 am

Re: EoJ on Tergothen Bay

#3 Post by nergalpl » Sun Apr 06, 2014 9:58 am

Somebody can help? ;/

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

Re: EoJ on Tergothen Bay

#4 Post by rock5 » Sun Apr 06, 2014 10:28 am

You don't seem to know how to complete loop. The loops should look like this

Code: Select all

repeat
    -- Some code
until condition

Code: Select all

while condition do
    -- Some code
end
You should learn a bit more basic lua before trying to do something more complex than you can handle.
  • 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
Rintintin
Posts: 55
Joined: Tue Jan 01, 2013 7:45 am
Location: Germany

Re: EoJ on Tergothen Bay

#5 Post by Rintintin » Thu Apr 10, 2014 4:33 pm

Is picked up your waypoint file and modified it until it worked. This is my result:

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
<onload>
	temp = 0;
	quests={};
	quests[0] = GetIdName(424623);   --Continue to Clean up the Threats to the Fishing Village
	quests[1] = GetIdName(424624);   --Immediate Relief";
	thievesPrisonerID  = 119487;

-- Only attack the nessescary opponents	and ignore all others
	table.insert(settings.profile.mobs,GetIdName(105798));
	table.insert(settings.profile.mobs,GetIdName(105799));
	table.insert(settings.profile.mobs,GetIdName(105843));
	table.insert(settings.profile.mobs,GetIdName(105848));

	
   function Chek_Quest()   
      queststate = getQuestStatus(quests[0]);
      if queststate == "complete" then
         player:update()
         temp = 0
         __WPL:setWaypointIndex(__WPL:findWaypointTag("questgiver"))   
      else temp = 1      
      end            
   end   


function acceptQuest(num)
	if getQuestStatus(quests[num]) == "not accepted" then
		player:target_NPC("John Carter")  
		yrest(100);
		AcceptQuestByName(quests[num]);
	else
		return false;
	end
end
      
</onload>

   <!-- #  1 --><waypoint x="-27527" z="24360" y="-83" tag="questgiver">   
   __WPL:setForcedWaypointType("RUN")
    for i = 0,1 do
		player:target_NPC("John Carter")   
		CompleteQuestByName(quests[i]);
	end
	for i = 0,1 do
		acceptQuest(i)
		
	end
	
	for i = 0,1 do
		if  getQuestStatus(quests[i]) == "incomplete" then
			__WPL:setWaypointIndex(__WPL:findWaypointTag("startQuest"..i))   
			cprintf (cli.white,"Doing quest %s\n",quests[i]);
		end
	end
    
      
   </waypoint>
   <!-- #  2 --><waypoint x="-27576" z="24330" y="-80" tag="startQuest0"> 	  </waypoint>
   <!-- #  3 --><waypoint x="-27636" z="24298" y="-66">   </waypoint>
   <!-- #  4 --><waypoint x="-27649" z="24236" y="-21">   </waypoint>
   <!-- #  5 --><waypoint x="-27699" z="24144" y="17">   </waypoint>
   <!-- #  6 --><waypoint x="-27757" z="24072" y="1" >   </waypoint>
   <!-- #  7 --><waypoint x="-27803" z="24013" y="0" >   </waypoint>
   <!-- #  8 --><waypoint x="-27839" z="23973" y="0" >   </waypoint>
   <!-- #  9 --><waypoint x="-27866" z="23941" y="2">__WPL:setForcedWaypointType("NORMAL")   </waypoint>
   <!-- # 10 --><waypoint x="-27907" z="23903" y="2">   </waypoint>
   <!-- # 11 --><waypoint x="-27986" z="23883" y="2">   </waypoint>
   <!-- # 12 --><waypoint x="-28033" z="23897" y="8">   </waypoint>
   <!-- # 13 --><waypoint x="-28005" z="23935" y="0">   </waypoint>
   <!-- # 14 --><waypoint x="-27973" z="23978" y="2" tag="reQ1"> Chek_Quest(); </waypoint>
   <!-- # 15 --><waypoint x="-28001" z="24017" y="1"> Chek_Quest(); </waypoint>
   <!-- # 16 --><waypoint x="-28046" z="24042" y="3"> Chek_Quest(); </waypoint>
   <!-- # 17 --><waypoint x="-28120" z="23999" y="7"> Chek_Quest(); </waypoint>
   <!-- # 18 --><waypoint x="-28147" z="23952" y="11"> Chek_Quest(); </waypoint>
   <!-- # 19 --><waypoint x="-28185" z="23913" y="3"> Chek_Quest(); </waypoint>
   <!-- # 20 --><waypoint x="-28235" z="23911" y="2"> Chek_Quest(); </waypoint>
   <!-- # 21 --><waypoint x="-28289" z="23922" y="1"> Chek_Quest(); </waypoint>
   <!-- # 22 --><waypoint x="-28338" z="23951" y="8"> Chek_Quest(); </waypoint>
   <!-- # 23 --><waypoint x="-28354" z="24002" y="9"> Chek_Quest(); </waypoint>
   <!-- # 24 --><waypoint x="-28338" z="24052" y="6"> Chek_Quest(); </waypoint>
   <!-- # 25 --><waypoint x="-28292" z="24084" y="0"> Chek_Quest(); </waypoint>
   <!-- # 26 --><waypoint x="-28237" z="24098" y="0"> Chek_Quest(); </waypoint>
   <!-- # 27 --><waypoint x="-28136" z="24099" y="5"> Chek_Quest(); </waypoint>
   <!-- # 28 --><waypoint x="-28040" z="24095" y="-4">
      Chek_Quest();
      if temp == 1 then
      __WPL:setWaypointIndex(__WPL:findWaypointTag("reQ1"))   
      end
   </waypoint>
   <!-- # 29 --><waypoint x="-27948" z="24092" y="-3"> Chek_Quest(); </waypoint>
   <!-- # 30 --><waypoint x="-27862" z="24089" y="-2"> Chek_Quest(); </waypoint>
   <!-- # 31 --><waypoint x="-27789" z="24106" y="2"> Chek_Quest(); </waypoint>
   <!-- # 32 --><waypoint x="-27726" z="24145" y="13">   </waypoint>
   <!-- # 33 --><waypoint x="-27655" z="24213" y="-8">   </waypoint>
   <!-- # 34 --><waypoint x="-27597" z="24273" y="-70">   </waypoint>
   <!-- # 35 --><waypoint x="-27555" z="24323" y="-82">   </waypoint>
   <!-- # 36 --><waypoint x="-27540" z="24340" y="-83" type="TRAVEL" tag="rerun">

      </waypoint>
   <!-- # 37 --><waypoint x="-27563" z="24326" y="-81" 	 tag="startQuest1"> 	__WPL:setForcedWaypointType("RUN")  </waypoint>
   <!-- # 38 --><waypoint x="-27618" z="24300" y="-71" 	>   </waypoint>
   <!-- # 39 --><waypoint x="-27635" z="24293" y="-65" 	>   </waypoint>
   <!-- # 40 --><waypoint x="-27649" z="24237" y="-22" 	>   </waypoint>
   <!-- # 41 --><waypoint x="-27673" z="24187" y="4" 	>   </waypoint>
   <!-- # 42 --><waypoint x="-27712" z="24137" y="16" 	>   </waypoint>
   <!-- # 43 --><waypoint x="-27761" z="24081" y="1" 	>   </waypoint>
   <!-- # 44 --><waypoint x="-27799" z="24022" y="0" 	>   </waypoint>
   <!-- # 45 --><waypoint x="-27817" z="24014" y="0" 	 tag="reQ2">
		player:target_Object(GetIdName(thievesPrisonerID));</waypoint>
   <!-- # 46 --><waypoint x="-27855" z="23964" y="1" >   </waypoint>
   <!-- # 47 --><waypoint x="-27875" z="23944" y="4" >   </waypoint>
   <!-- # 48 --><waypoint x="-27889" z="23930" y="5" >
   
		player:target_Object(GetIdName(thievesPrisonerID));
		yrest(200);

		if getQuestStatus(quests[1]) ~= "complete" then
			__WPL:setWaypointIndex(__WPL:findWaypointTag("reQ2"))
		end
   </waypoint>

</waypoints>

Post Reply

Who is online

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