Difference between revisions of "RoM DailyLevel1Elves"

From SolarStrike wiki
Jump to: navigation, search
m
Line 7: Line 7:
 
<source lang="xml">
 
<source lang="xml">
 
<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
 
<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<!-- #  1 --><waypoint x="31845" z="4588">
+
<!-- #  1 -->
 
+
<waypoint x="31845" z="4588">
local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()");  
+
local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()");  
    if 10 == dailyQuestCount then
+
    if 10 == dailyQuestCount then
      printf ("Du hast "..dailyQuestCount.." von " .. dailyQuestsPerDay ..    " Tagesquests erledigt. STOP.");
+
      printf ("Du hast "..dailyQuestCount.." von " .. dailyQuestsPerDay ..    " Tagesquests erledigt. STOP.");
      error("Bot finished", 0); -- Not really an error, but it will drop us back to shell.
+
      error("Bot gestoppt.", 0); -- ends the script.
      else
+
      else
      printf("Du hast "..dailyQuestCount.." von " .. dailyQuestsPerDay ..    " Tagesquests erledigt, bleiben noch " .. dailyQuestsPerDay - dailyQuestCount .. " Quests.");
+
      printf("Du hast "..dailyQuestCount.." von " .. dailyQuestsPerDay ..    " Tagesquests erledigt, bleiben noch " .. dailyQuestsPerDay - dailyQuestCount .. " Quests.");
      end
+
      end
player:target_NPC("Blinsik");
+
player:target_NPC("Blinsik");
sendMacro("OnClick_QuestListButton(1, 2)"); yrest(750);
+
sendMacro("OnClick_QuestListButton(1, 2)"); yrest(750);
sendMacro("AcceptQuest()"); yrest(2000);
+
sendMacro("AcceptQuest()"); yrest(2000);
</waypoint>
+
</waypoint>
 
<!-- #  3 --><waypoint x="31863" z="4658"> </waypoint>
 
<!-- #  3 --><waypoint x="31863" z="4658"> </waypoint>
 
<!-- #  4 --><waypoint x="31835" z="4880"> </waypoint>
 
<!-- #  4 --><waypoint x="31835" z="4880"> </waypoint>
 
<!-- #  5 --><waypoint x="31737" z="5127"> </waypoint>
 
<!-- #  5 --><waypoint x="31737" z="5127"> </waypoint>
<!-- #  6 --><waypoint x="31419" z="5721">
+
<!-- #  6 -->
player:target_Object("Reinigungskristall", 8000);
+
<waypoint x="31419" z="5721">
</waypoint>
+
player:target_Object("Reinigungskristall", 8000);
 +
</waypoint>
 
<!-- #  7 --><waypoint x="31737" z="5127"> </waypoint>
 
<!-- #  7 --><waypoint x="31737" z="5127"> </waypoint>
 
<!-- #  8 --><waypoint x="31835" z="4880"> </waypoint>
 
<!-- #  8 --><waypoint x="31835" z="4880"> </waypoint>
 
<!-- #  9 --><waypoint x="31863" z="4658"> </waypoint>
 
<!-- #  9 --><waypoint x="31863" z="4658"> </waypoint>
 
<!-- #  10 --><waypoint x="31854" z="4599"> </waypoint>
 
<!-- #  10 --><waypoint x="31854" z="4599"> </waypoint>
<waypoint x="31845" z="4588">
+
<!-- #  11 -->
player:target_NPC("Blinsik");
+
<waypoint x="31845" z="4588">
sendMacro("OnClick_QuestListButton(3, 1)"); yrest(750);
+
player:target_NPC("Blinsik");
sendMacro("CompleteQuest()"); yrest(2000);
+
sendMacro("OnClick_QuestListButton(3, 1)"); yrest(750);
</waypoint>
+
sendMacro("CompleteQuest()"); yrest(2000);
 +
</waypoint>
  
 
</waypoints>
 
</waypoints>
 
</source>
 
</source>

Revision as of 08:02, 19 October 2010

  1. Save this waypoint file under micromacro/scripts/rom/waypoints/dq1.xml
  2. Stand in front of "Blinsik"
  3. Execute rom/bot.lua path:dq1
  4. Watch your character finish up to 10 daily quests
  5. To translate this into english, you have to replace "Reinigungskristall" with the english word.
<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
	<!-- #  1 -->
		<waypoint x="31845" z="4588">
			local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()"); 
     			if 10 == dailyQuestCount then
      				printf ("Du hast "..dailyQuestCount.." von " .. dailyQuestsPerDay ..    " Tagesquests erledigt. STOP.");
      				error("Bot gestoppt.", 0); -- ends the script.
      			else
      				printf("Du hast "..dailyQuestCount.." von " .. dailyQuestsPerDay ..    " Tagesquests erledigt, bleiben noch " .. dailyQuestsPerDay - dailyQuestCount .. " Quests.");
      			end
			player:target_NPC("Blinsik");
			sendMacro("OnClick_QuestListButton(1, 2)"); yrest(750);
			sendMacro("AcceptQuest()"); yrest(2000);	
		</waypoint>
	<!-- #  3 --><waypoint x="31863" z="4658">	</waypoint>
	<!-- #  4 --><waypoint x="31835" z="4880">	</waypoint>
	<!-- #  5 --><waypoint x="31737" z="5127">	</waypoint>
	<!-- #  6 -->
		<waypoint x="31419" z="5721">
			player:target_Object("Reinigungskristall", 8000);
		</waypoint>
	<!-- #  7 --><waypoint x="31737" z="5127">	</waypoint>
	<!-- #  8 --><waypoint x="31835" z="4880">	</waypoint>
	<!-- #  9 --><waypoint x="31863" z="4658">	</waypoint>
	<!-- #  10 --><waypoint x="31854" z="4599">	</waypoint>
	<!-- #  11 -->
		<waypoint x="31845" z="4588">	
			player:target_NPC("Blinsik");
			sendMacro("OnClick_QuestListButton(3, 1)"); yrest(750);
			sendMacro("CompleteQuest()"); yrest(2000);
		</waypoint>

</waypoints>