Page 1 of 1

As I do a quest is incomplete status........?

Posted: Mon Feb 10, 2014 9:32 am
by Lamkefyned
As I do a quest is incomplete status and if you are going to a tag

Re: As I do a quest is incomplete status........?

Posted: Mon Feb 10, 2014 3:12 pm
by Bill D Cat
Sorry, but your question did not make any sense. Can you ask again in Spanish in more detail?

Lo siento, pero tu pregunta no hizo ningún sentido. ¿Puede pedir otra vez en español con más detalle?

Re: As I do a quest is incomplete status........?

Posted: Mon Feb 10, 2014 3:23 pm
by Lamkefyned
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
ESPAÑOL
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

tengo este script

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<waypoints>
<onLoad>
	<!-- SETTINGS-->
	settings.profile.options.WAYPOINT_DEVIATION = 5
	settings.profile.mobs = {GetIdName(106798)};
	changeProfileOption("LOOT",false); 

	<!-- FUNCTION TO DEFINE ORIGIN'S WAYPOINT -->
			__WPL:setWaypointIndex(__WPL:findWaypointTag("StartDaily"))
</onLoad>
	<!-- WAYPOINT START SCRIPT -->
	<!-- #  1 --><waypoint x="-7925" z="-16856" y="737" tag="StartDaily">
		local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()");
			if 10 == dailyQuestCount then
				if inventory:itemTotalCount(202434) > 0 then
					printf("We will use Daily Quest Reset Ticket");
					inventory:useItem(202434)
					yrest(1000)
					loadPaths(__WPL.FileName)
				elseif inventory:itemTotalCount(202434) == 0 then
					error("Ending script",2)
				end
			else
      			printf("Done "..dailyQuestCount.." of " .. dailyQuestsPerDay ..    " Left " .. dailyQuestsPerDay - dailyQuestCount .. " Quests.");
      		end
			player:target_NPC(120489)
			AcceptQuestByName(422922) -- Control de escarabajos
	</waypoint>
	<!-- #  2 --><waypoint x="-7954" z="-16783" y="721">	</waypoint>
	<!-- #  3 --><waypoint x="-7765" z="-16398" y="719">	</waypoint>
	<!-- #  4 --><waypoint x="-7767" z="-16085" y="717" tag="StartDaily1"> </waypoint>
	<!-- #  5 --><waypoint x="-7810" z="-15905" y="728"> </waypoint>
	<!-- #  6 --><waypoint x="-7883" z="-15644" y="737"> </waypoint>
	<!-- #  7 --><waypoint x="-7837" z="-15383" y="731"> </waypoint>
	<!-- #  8 --><waypoint x="-7858" z="-15191" y="732"> </waypoint>
	<!-- #  9 --><waypoint x="-7982" z="-14864" y="733">	</waypoint>
	<!-- # 10 --><waypoint x="-8107" z="-14578" y="702">	</waypoint>
	<!-- # 11 --><waypoint x="-8109" z="-14406" y="725">	</waypoint>
	<!-- # 12 --><waypoint x="-8311" z="-14478" y="686">	</waypoint>
	<!-- # 13 --><waypoint x="-8057" z="-14713" y="720">	</waypoint>
	<!-- # 14 --><waypoint x="-7834" z="-15312" y="731">	</waypoint>
	<!-- # 15 --><waypoint x="-7860" z="-15556" y="731">	</waypoint>
	<!-- # 16 --><waypoint x="-7630" z="-15875" y="732">	</waypoint>
	<!-- # 17 --><waypoint x="-7454" z="-15863" y="735">	</waypoint>
	<!-- # 18 --><waypoint x="-7308" z="-15824" y="741">	</waypoint>
	<!-- # 19 --><waypoint x="-7421" z="-15908" y="732">	</waypoint>
	<!-- # 20 --><waypoint x="-7635" z="-15927" y="733">	</waypoint>
	<!-- # 21 --><waypoint x="-7764" z="-16171" y="716">	</waypoint>
	<!-- # 22 --><waypoint x="-7834" z="-16537" y="718" tag="EndDaily1">	</waypoint>
	<!-- # 23 --><waypoint x="-7968" z="-16804" y="725">	</waypoint>
	<!-- # 24 --><waypoint x="-7994" z="-17079" y="741">	</waypoint>
	<!-- # 25 --><waypoint x="-8094" z="-17014" y="743">	</waypoint>
	<!-- # 26 --><waypoint x="-8078" z="-16937" y="787">
			player:target_NPC(120486) -- Milo Roger
			sendMacro("ChoiceOption(3)") -- 'Quiero cambiar mi clase principal por mi clase secundaria.'
			yrest(2000)
	</waypoint>
	<!-- # 27 --><waypoint x="-7981" z="-16963" y="742">	</waypoint>
	<!-- # 28 --><waypoint x="-7967" z="-16846" y="734">	</waypoint>
	<!-- # 29 --><waypoint x="-7843" z="-16702" y="716">	</waypoint>
	<!-- # 30 --><waypoint x="-7565" z="-16766" y="647">
			player:target_NPC(120791) -- Rocky Bode
			CompleteQuestByName(422922) -- Control de escarabajos
	</waypoint>
	<!-- # 31 --><waypoint x="-7477" z="-16760" y="642">	</waypoint>
	<!-- # 32 --><waypoint x="-7690" z="-16727" y="677">	</waypoint>
	<!-- # 33 --><waypoint x="-7890" z="-16684" y="718">	</waypoint>
	<!-- # 34 --><waypoint x="-7987" z="-16944" y="742">	</waypoint>
	<!-- # 35 --><waypoint x="-8002" z="-17064" y="741">	</waypoint>
	<!-- # 36 --><waypoint x="-8097" z="-17013" y="743">
			player:target_NPC(120486) -- Milo Roger
			sendMacro("ChoiceOption(3)") -- 'Quiero cambiar mi clase principal por mi clase secundaria.'
			yrest(2000)
	</waypoint>
	<!-- # 37 --><waypoint x="-7987" z="-16953" y="742">	</waypoint>
	<!-- # 38 --><waypoint x="-7967" z="-16853" y="735">
	__WPL:setWaypointIndex(__WPL:findWaypointTag("StartDaily")) 
	</waypoint>
</waypoints>
Y quiero ponerle en el onload + en el script para que mire la mision y si esta incompleta que retroceda a un tag

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
ENGLISH
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I have this script

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<waypoints>
<onLoad>
	<!-- SETTINGS-->
	settings.profile.options.WAYPOINT_DEVIATION = 5
	settings.profile.mobs = {GetIdName(106798)};
	changeProfileOption("LOOT",false); 

	<!-- FUNCTION TO DEFINE ORIGIN'S WAYPOINT -->
			__WPL:setWaypointIndex(__WPL:findWaypointTag("StartDaily"))
</onLoad>
	<!-- WAYPOINT START SCRIPT -->
	<!-- #  1 --><waypoint x="-7925" z="-16856" y="737" tag="StartDaily">
		local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()");
			if 10 == dailyQuestCount then
				if inventory:itemTotalCount(202434) > 0 then
					printf("We will use Daily Quest Reset Ticket");
					inventory:useItem(202434)
					yrest(1000)
					loadPaths(__WPL.FileName)
				elseif inventory:itemTotalCount(202434) == 0 then
					error("Ending script",2)
				end
			else
      			printf("Done "..dailyQuestCount.." of " .. dailyQuestsPerDay ..    " Left " .. dailyQuestsPerDay - dailyQuestCount .. " Quests.");
      		end
			player:target_NPC(120489)
			AcceptQuestByName(422922) -- Control de escarabajos
	</waypoint>
	<!-- #  2 --><waypoint x="-7954" z="-16783" y="721">	</waypoint>
	<!-- #  3 --><waypoint x="-7765" z="-16398" y="719">	</waypoint>
	<!-- #  4 --><waypoint x="-7767" z="-16085" y="717" tag="StartDaily1"> </waypoint>
	<!-- #  5 --><waypoint x="-7810" z="-15905" y="728"> </waypoint>
	<!-- #  6 --><waypoint x="-7883" z="-15644" y="737"> </waypoint>
	<!-- #  7 --><waypoint x="-7837" z="-15383" y="731"> </waypoint>
	<!-- #  8 --><waypoint x="-7858" z="-15191" y="732"> </waypoint>
	<!-- #  9 --><waypoint x="-7982" z="-14864" y="733">	</waypoint>
	<!-- # 10 --><waypoint x="-8107" z="-14578" y="702">	</waypoint>
	<!-- # 11 --><waypoint x="-8109" z="-14406" y="725">	</waypoint>
	<!-- # 12 --><waypoint x="-8311" z="-14478" y="686">	</waypoint>
	<!-- # 13 --><waypoint x="-8057" z="-14713" y="720">	</waypoint>
	<!-- # 14 --><waypoint x="-7834" z="-15312" y="731">	</waypoint>
	<!-- # 15 --><waypoint x="-7860" z="-15556" y="731">	</waypoint>
	<!-- # 16 --><waypoint x="-7630" z="-15875" y="732">	</waypoint>
	<!-- # 17 --><waypoint x="-7454" z="-15863" y="735">	</waypoint>
	<!-- # 18 --><waypoint x="-7308" z="-15824" y="741">	</waypoint>
	<!-- # 19 --><waypoint x="-7421" z="-15908" y="732">	</waypoint>
	<!-- # 20 --><waypoint x="-7635" z="-15927" y="733">	</waypoint>
	<!-- # 21 --><waypoint x="-7764" z="-16171" y="716">	</waypoint>
	<!-- # 22 --><waypoint x="-7834" z="-16537" y="718" tag="EndDaily1">	</waypoint>
	<!-- # 23 --><waypoint x="-7968" z="-16804" y="725">	</waypoint>
	<!-- # 24 --><waypoint x="-7994" z="-17079" y="741">	</waypoint>
	<!-- # 25 --><waypoint x="-8094" z="-17014" y="743">	</waypoint>
	<!-- # 26 --><waypoint x="-8078" z="-16937" y="787">
			player:target_NPC(120486) -- Milo Roger
			sendMacro("ChoiceOption(3)") -- 'Quiero cambiar mi clase principal por mi clase secundaria.'
			yrest(2000)
	</waypoint>
	<!-- # 27 --><waypoint x="-7981" z="-16963" y="742">	</waypoint>
	<!-- # 28 --><waypoint x="-7967" z="-16846" y="734">	</waypoint>
	<!-- # 29 --><waypoint x="-7843" z="-16702" y="716">	</waypoint>
	<!-- # 30 --><waypoint x="-7565" z="-16766" y="647">
			player:target_NPC(120791) -- Rocky Bode
			CompleteQuestByName(422922) -- Control de escarabajos
	</waypoint>
	<!-- # 31 --><waypoint x="-7477" z="-16760" y="642">	</waypoint>
	<!-- # 32 --><waypoint x="-7690" z="-16727" y="677">	</waypoint>
	<!-- # 33 --><waypoint x="-7890" z="-16684" y="718">	</waypoint>
	<!-- # 34 --><waypoint x="-7987" z="-16944" y="742">	</waypoint>
	<!-- # 35 --><waypoint x="-8002" z="-17064" y="741">	</waypoint>
	<!-- # 36 --><waypoint x="-8097" z="-17013" y="743">
			player:target_NPC(120486) -- Milo Roger
			sendMacro("ChoiceOption(3)") -- 'Quiero cambiar mi clase principal por mi clase secundaria.'
			yrest(2000)
	</waypoint>
	<!-- # 37 --><waypoint x="-7987" z="-16953" y="742">	</waypoint>
	<!-- # 38 --><waypoint x="-7967" z="-16853" y="735">
	__WPL:setWaypointIndex(__WPL:findWaypointTag("StartDaily")) 
	</waypoint>
</waypoints>
And I want to put in the onload + in the script to see if this mission and finish it recedes to a tag

Re: As I do a quest is incomplete status........?

Posted: Mon Feb 10, 2014 6:01 pm
by lisa
this might work, untested.

Code: Select all

if getQuestStatus(422922) == "incomplete" then
__WPL:setWaypointIndex(__WPL:findWaypointTag("StartDaily"))
end