Page 1 of 1

Dwarf Daily - Resisting the Outside Threat

Posted: Fri Jun 21, 2019 9:19 pm
by DocVin
Hi everyone,
I wonder if someone of you guys has the script for the dwarf daily Resisting the Outside Threat. I once wrote myself a script for it, but it got lost when I uninstalled RoM and everything else some time ago. I just started to re-write it, but I unfortunately forgot quite a lot. That's what I made so far, ends quite in the beginning with - [string "..."]:3: attempt to call global 'SureCompleteQuest' (a nil value)

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
    <!-- #  1 --><waypoint x="5131" z="3959" y="1439" tag ='start'>
         
         local dqCount, dqPerDay = RoMScript("Daily_count()");
         if 10 > dqCount then   
            queststate = getQuestStatus("Resisting the Outside Threat");
            if queststate == "complete" then
               -- Complete quest
               player:target_NPC("Clarence Ferrous");
               sendMacro("CompleteQuest()"); yrest(1200);
               -- Accept quest
               player:target_NPC("Clarence Ferrous");
               sendMacro("AcceptQuest()"); yrest(1200);
               --__WPL:setWaypointIndex(__WPL:findWaypointTag("start"));   
            else
               -- Accept quest
               player:target_NPC("Clarence Ferrous");
               sendMacro("AcceptQuest()"); yrest(1200);
            end
         else
            sendMacro("}LoginNextToon=true;a={")
            sendMacro("Logout();"); yrest(3*60*1000) -- wait 3m for next character to load
                  -- Re-initialize player
              player = CPlayer.new();
              settings.load();
              settings.loadProfile("tiering"); -- Profile name
              yrest (4000)
            end
</waypoint>
<waypoint x="5131" z="3959" y="1439">
			player:target_NPC(120456) -- Clarence Ferrous
			SureAcceptQuest(425054) -- Resisting the Outside Threat
	</waypoint>
	<!-- #  2 --><waypoint x="5225" z="3855" y="1414" tag="Guards">
			player:target_NPC(106585) -- Front Line Camp Guard
			inventory:useItem(241117) -- Magic Shield Potion
			yrest(3000)
	</waypoint>
	<!-- #  3 --><waypoint x="5269" z="3725" y="1421">
			player:target_NPC(106585) -- Front Line Camp Guard
			inventory:useItem(241117) -- Magic Shield Potion
			yrest(3000)
	</waypoint>
	<!-- #  4 --><waypoint x="5346" z="3834" y="1415">
			player:target_NPC(106585) -- Front Line Camp Guard
			inventory:useItem(241117) -- Magic Shield Potion
			yrest(3000)
	</waypoint>
	<!-- #  5 --><waypoint x="5233" z="3850" y="1413">
			player:target_NPC(106585) -- Front Line Camp Guard
			inventory:useItem(241117) -- Magic Shield Potion
			yrest(3000)
	</waypoint>
	<!-- #  6 --><waypoint x="5222" z="4028" y="1416">
			player:target_NPC(106585) -- Front Line Camp Guard
			inventory:useItem(241117) -- Magic Shield Potion
			yrest(3000)
			if getQuestStatus(425054) == "incomplete" then
				__WPL:setWaypointIndex(__WPL:findWaypointTag("Guards"))
			end
	</waypoint>
	<!-- #  7 --><waypoint x="5140" z="3981" y="1422">
			player:target_NPC(120456) -- Clarence Ferrous
			SureCompleteQuest(425054, 1) -- Resisting the Outside Threat
	</waypoint>
	<!-- #  8 --><waypoint x="31850" z="4590">
          repeat dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()") until dailyQuestCount and dailyQuestsPerDay
          if (dailyQuestsPerDay - dailyQuestCount) == 0 then
                  sendMacro("}LoginNextToon=true;a={")
            sendMacro("Logout();"); waitForLoadingScreen()
                  -- Re-initialize player
              player = CPlayer.new();
              settings.load();
              yrest (4000)
             else
         __WPL:setWaypointIndex(__WPL:findWaypointTag("start"));
         end
	</waypoint>
</waypoints>
Help is highly appreciated!

Cheers,
Vin

Re: Dwarf Daily - Resisting the Outside Threat

Posted: Sat Jun 22, 2019 6:05 am
by DocVin
nevermind, found my mistakes! it was probably too late last night...

Re: Dwarf Daily - Resisting the Outside Threat

Posted: Sat Nov 23, 2019 12:03 pm
by devrimist
Hello Doc. How can we use this code ont the game, can you tell us? but you have to tell us exactly.