Demonstration Battle by lolita

Additional botting resources. Addons may be either for the game itself or for the RoM bot.
Forum rules
Only post additional bot resources here. Please do not ask unrelated questions.
Message
Author
User avatar
lolita
Posts: 139
Joined: Thu Oct 20, 2011 5:39 am
Location: Serbia

Demonstration Battle by lolita

#1 Post by lolita » Sat Jul 20, 2013 2:46 pm

v1.0
** do daily quest Demonstration Battle in ancient kingdom in rorazan
** use daily quest reset ticket if you have some
** for champion, druid and warior i didnt found any instant useful skill, so you must have mage scout or rogue for secoundary class
** i tested only with mage, warlock and priest, so if there is any problem with other classes, report bug
Attachments
Demonstration_Battle_by_lolita.xml
(3.33 KiB) Downloaded 499 times
Life is a journey, not destination :D

User avatar
gloover
Posts: 304
Joined: Wed Jul 07, 2010 4:31 am

Re: Demonstration Battle by lolita

#2 Post by gloover » Fri Aug 23, 2013 10:57 am

Can you please make a loop for leveling a subclass?

User avatar
lolita
Posts: 139
Joined: Thu Oct 20, 2011 5:39 am
Location: Serbia

Re: Demonstration Battle by lolita

#3 Post by lolita » Fri Aug 23, 2013 5:01 pm

gloover wrote:make a loop for leveling a subclass?
You mean take quest with primary class lv 69+ and turn in with sec class lv 59+ ?
well it's not problem, but i dont have time atm, but you can try it by your self, just change

Code: Select all

function checkCondition()
	queststate = getQuestStatus(425124);
	if queststate == "complete" then
		if player.Level >= 69 then
			__WPL:setWaypointIndex(__WPL:findWaypointTag("go to housekeeper"));  -- make your waypoint to house, change class and get back to NPC
		else
			__WPL:setWaypointIndex(__WPL:findWaypointTag("complete"));
		end
	end
end
and

Code: Select all

<!-- #  1 --><waypoint x="-18346" z="-22692" y="469">
	checkCondition()	
	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
			if 69 > player.Level then -- go back to house and change class
				__WPL:setWaypointIndex(__WPL:findWaypointTag("go to housekeeper"));
			else	
				player:target_NPC(119856)
				AcceptQuestByName(425124)
			end
	</waypoint>
Life is a journey, not destination :D

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

Re: Demonstration Battle by lolita

#4 Post by Bill D Cat » Thu Dec 05, 2013 2:26 pm

I've been using this off and on for the past few months, and it always bothered me that the bot would try to attack the other nearby mobs that were not part of this daily quest. So I did a little investigating and discovered that if I set the main waypoint movement type to "RUN" that it stopped trying to attack the other mobs. I also found that you don't need instant cast skills to complete this daily (anymore?), and managed to do it as a Warrior with just the Attack() command, and as Druid with Earth Arrow.

So here's my modified version of the waypoint file if anyone wants to try it out.
Attachments
DemoBattle.xml
v1.1 modified by Bill D Cat
(2.74 KiB) Downloaded 307 times

Draakje
Posts: 63
Joined: Sat Aug 10, 2013 6:24 am

Re: Demonstration Battle by lolita

#5 Post by Draakje » Sat Jul 26, 2014 8:03 am

Hi nice to see this daily, but I've been trying figure also to input of class swap to turn in. Don't seem to get it with the WaypointTag.
So far i have this, with the change as lolita suggest.

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
<!-- Demonstration Battle daily quest -->
<!-- v1.0 -->
<!-- by: lolita -->
<!-- Do Demonstration Battle daily quest in Rorazan, and use daily reset tickets if you have some -->
</onLoad>
settings.profile.mobs = {106474,106475,106476};
function checkCondition()
   queststate = getQuestStatus(425124);
   if queststate == "complete" then
      if player.Level >= 80 then
         __WPL:setWaypointIndex(__WPL:findWaypointTag("go to housekeeper1"));  -- make your waypoint to house, change class and get back to NPC
      else
         __WPL:setWaypointIndex(__WPL:findWaypointTag("complete"));
      end
   end
end

function checkLoopCondition()
	queststate = getQuestStatus(425124);
	if queststate ~= "complete" then
	__WPL:setWaypointIndex(__WPL:findWaypointTag("incomplete"));
	end
end

function getclass()
	-- those 3 class can be main or secoundary
	if (player.Class1 == 4 or player.Class2 == 4) then -- mage
		SlashCommand("/cast Fireball")
	elseif (player.Class1 == 2 or player.Class2 == 2) then -- scout
		SlashCommand("/cast Shot")
	elseif (player.Class1 == 3 or player.Class2 == 3)  then 	-- rogue
		SlashCommand("/cast Shadowstab")
	-- class who can do daily
	elseif player.Class1 == 5 then 			-- priest
		SlashCommand("/cast Chain of Light")
	elseif player.Class1 == 6 then 			-- knight
		SlashCommand("/cast Holy Strike")
	elseif player.Class1 == 7 then 			-- warden
		SlashCommand("/cast Charged Chop")
	elseif player.Class1 == 9 then 			-- warlock
		SlashCommand("/cast Surge of Malice")
	-- for those 3 class didnt found useful skill for doing this daily
	-- so you must use them with mage, scout or rogue as secoundary class
	elseif player.Class1 == 8 then 			-- druid
		printf("Pls change your secondary class to Mage or Scout or Rogue");
		player:sleep()
	elseif player.Class1 == 10 then 		-- champion
		printf("Pls change your secondary class to Mage or Scout or Rogue");
		player:sleep()
	elseif player.Class1 == 1 then 			-- warrior
		printf("Pls change your secondary class to Mage or Scout or Rogue");
		player:sleep()
	end
end
function doquest()
	LockedOn = RoMScript("UnitExists('target')")
	enemy = RoMScript("UnitCanAttack('player','target')")
	if (not LockedOn) or (not enemy) then
		for i=1,5 do
			if getQuestStatus(425124) == "complete" then
				break
			end
			RoMScript("TargetNearestEnemy()")
			getclass()
			yrest(500)
		end
	end
end
</onLoad>	
	<!-- #  1 --><waypoint x="-18346" z="-22692" y="469">
   	checkCondition()   
   	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
         if 61 > player.Level then -- go back to house and change class
            __WPL:setWaypointIndex(__WPL:findWaypointTag("go to housekeeper2"));
         else   
            player:target_NPC(119856)
            AcceptQuestByName(425124)
         end
<waypoint>
	<!-- #  1 --><waypoint x="-18359" z="-22709" y="486" tag="go to housekeeper1">    </waypoint>
	<!-- #  2 --><waypoint x="-18358" z="-22773" y="471">  player:mount();	</waypoint>
	<!-- #  3 --><waypoint x="-18353" z="-22821" y="470">	</waypoint>
	<!-- #  4 --><waypoint x="-18322" z="-22933" y="470">	</waypoint>
	<!-- #  5 --><waypoint x="-18276" z="-22977" y="470">	</waypoint>
	<!-- #  6 --><waypoint x="-18188" z="-23011" y="458">	</waypoint>
	<!-- #  7 --><waypoint x="-18103" z="-23022" y="481">	</waypoint>
	<!-- #  8 --><waypoint x="-17984" z="-23038" y="482">	</waypoint>
	<!-- #  9 --><waypoint x="-17908" z="-23067" y="488">	</waypoint>
	<!-- # 10 --><waypoint x="-17827" z="-23118" y="482">	</waypoint>
	<!-- # 11 --><waypoint x="-17741" z="-23196" y="499">	</waypoint>
	<!-- # 12 --><waypoint x="-17681" z="-23281" y="539">	</waypoint>
	<!-- # 13 --><waypoint x="-17636" z="-23418" y="563">	</waypoint>
	<!-- # 14 --><waypoint x="-17618" z="-23512" y="569">	</waypoint>
	<!-- # 15 --><waypoint x="-17565" z="-23541" y="568">	</waypoint>
	<!-- # 16 --><waypoint x="-17505" z="-23511" y="582">	</waypoint>
	<!-- # 17 --><waypoint x="-17449" z="-23464" y="613">	</waypoint>
	<!-- # 18 --><waypoint x="-17388" z="-23427" y="637">	</waypoint>
	<!-- # 19 --><waypoint x="-17290" z="-23428" y="634">	</waypoint>
	<!-- # 20 --><waypoint x="-17228" z="-23443" y="636">	</waypoint>
	<!-- # 21 --><waypoint x="-17223" z="-23501" y="633">
			player:target_NPC(120185) -- John Roger
			ChoiceOptionByName(getTEXT("SO_110581_1")) -- 'I want to switch my primary and secondary class.'
			player:mouseclickL(315, 208, 1920, 1058)
			player:mouseclickL(255, 254, 1920, 1058)
			player:mouseclickL(112, 368, 1920, 1058)
	</waypoint>
	<!-- # 22 --><waypoint x="-17223" z="-23501" y="634"> player:mount();	</waypoint>
	<!-- # 23 --><waypoint x="-17213" z="-23476" y="633">	</waypoint>
	<!-- # 24 --><waypoint x="-17256" z="-23423" y="634">	</waypoint>
	<!-- # 25 --><waypoint x="-17318" z="-23356" y="635">	</waypoint>
	<!-- # 26 --><waypoint x="-17394" z="-23393" y="634">	</waypoint>
	<!-- # 27 --><waypoint x="-17509" z="-23457" y="599">	</waypoint>
	<!-- # 28 --><waypoint x="-17593" z="-23413" y="566">	</waypoint>
	<!-- # 29 --><waypoint x="-17668" z="-23301" y="549">	</waypoint>
	<!-- # 30 --><waypoint x="-17761" z="-23169" y="489">	</waypoint>
	<!-- # 31 --><waypoint x="-17824" z="-23106" y="485">	</waypoint>
	<!-- # 32 --><waypoint x="-17933" z="-23046" y="485">	</waypoint>
	<!-- # 33 --><waypoint x="-18044" z="-23006" y="485">	</waypoint>
	<!-- # 34 --><waypoint x="-18243" z="-23029" y="439">	</waypoint>
	<!-- # 35 --><waypoint x="-18337" z="-23066" y="439">	</waypoint>
	<!-- # 36 --><waypoint x="-18430" z="-23090" y="439">	</waypoint>
	<!-- # 37 --><waypoint x="-18481" z="-23071" y="438">	</waypoint>
	<!-- # 38 --><waypoint x="-18475" z="-23005" y="464">	</waypoint>
	<!-- # 39 --><waypoint x="-18407" z="-22855" y="474">	</waypoint>
	<!-- # 40 --><waypoint x="-18366" z="-22727" y="484">	</waypoint>
	<!-- # 41 --><waypoint x="-18359" z="-22701" y="483" tag="complete">	</waypoint>
</waypoint>


<waypoint>
	<!-- #  1 --><waypoint x="-18359" z="-22701" y="483" tag="go to housekeeper2">	  </waypoint>
	<!-- #  2 --><waypoint x="-18359" z="-22736" y="489">	player:mount(); </waypoint>
	<!-- #  3 --><waypoint x="-18355" z="-22800" y="476">	</waypoint>
	<!-- #  4 --><waypoint x="-18337" z="-22897" y="476">	</waypoint>
	<!-- #  5 --><waypoint x="-18302" z="-22955" y="475">	</waypoint>
	<!-- #  6 --><waypoint x="-18237" z="-23000" y="442">	</waypoint>
	<!-- #  7 --><waypoint x="-18136" z="-23023" y="473">	</waypoint>
	<!-- #  8 --><waypoint x="-18035" z="-23036" y="488">	</waypoint>
	<!-- #  9 --><waypoint x="-17928" z="-23058" y="487">	</waypoint>
	<!-- # 10 --><waypoint x="-17838" z="-23111" y="482">	</waypoint>
	<!-- # 11 --><waypoint x="-17759" z="-23176" y="493">	</waypoint>
	<!-- # 12 --><waypoint x="-17709" z="-23245" y="519">	</waypoint>
	<!-- # 13 --><waypoint x="-17665" z="-23327" y="556">	</waypoint>
	<!-- # 14 --><waypoint x="-17637" z="-23407" y="564">	</waypoint>
	<!-- # 15 --><waypoint x="-17609" z="-23514" y="565">	</waypoint>
	<!-- # 16 --><waypoint x="-17559" z="-23536" y="568">	</waypoint>
	<!-- # 17 --><waypoint x="-17512" z="-23513" y="586">	</waypoint>
	<!-- # 18 --><waypoint x="-17466" z="-23472" y="608">	</waypoint>
	<!-- # 19 --><waypoint x="-17408" z="-23426" y="631">	</waypoint>
	<!-- # 20 --><waypoint x="-17339" z="-23379" y="636">	</waypoint>
	<!-- # 21 --><waypoint x="-17286" z="-23379" y="636">	</waypoint>
	<!-- # 22 --><waypoint x="-17236" z="-23439" y="636">	</waypoint>
	<!-- # 23 --><waypoint x="-17223" z="-23500" y="633">
			player:target_NPC(120185) -- John Roger
			ChoiceOptionByName(getTEXT("SO_110581_1")) -- 'I want to switch my primary and secondary class.'
			player:mouseclickL(312, 208, 1920, 1058)
			player:mouseclickL(223, 273, 1920, 1058)
			player:mouseclickL(114, 365, 1920, 1058)
	</waypoint>
	<!-- # 24 --><waypoint x="-17223" z="-23501" y="633">	 player:mount(); </waypoint>
	<!-- # 25 --><waypoint x="-17203" z="-23460" y="634">	</waypoint>
	<!-- # 26 --><waypoint x="-17266" z="-23399" y="637">	</waypoint>
	<!-- # 27 --><waypoint x="-17310" z="-23359" y="637">	</waypoint>
	<!-- # 28 --><waypoint x="-17369" z="-23365" y="634">	</waypoint>
	<!-- # 29 --><waypoint x="-17439" z="-23394" y="631">	</waypoint>
	<!-- # 30 --><waypoint x="-17522" z="-23397" y="615">	</waypoint>
	<!-- # 31 --><waypoint x="-17606" z="-23388" y="567">	</waypoint>
	<!-- # 32 --><waypoint x="-17637" z="-23339" y="563">	</waypoint>
	<!-- # 33 --><waypoint x="-17689" z="-23240" y="532">	</waypoint>
	<!-- # 34 --><waypoint x="-17767" z="-23156" y="486">	</waypoint>
	<!-- # 35 --><waypoint x="-17852" z="-23090" y="487">	</waypoint>
	<!-- # 36 --><waypoint x="-17917" z="-23054" y="482">	</waypoint>
	<!-- # 37 --><waypoint x="-18022" z="-23024" y="486">	</waypoint>
	<!-- # 38 --><waypoint x="-18128" z="-23022" y="486">	</waypoint>
	<!-- # 39 --><waypoint x="-18241" z="-23038" y="442">	</waypoint>
	<!-- # 40 --><waypoint x="-18365" z="-23070" y="442">	</waypoint>
	<!-- # 41 --><waypoint x="-18464" z="-23087" y="439">	</waypoint>
	<!-- # 42 --><waypoint x="-18487" z="-23061" y="444">	</waypoint>
	<!-- # 43 --><waypoint x="-18471" z="-22996" y="470">	</waypoint>
	<!-- # 44 --><waypoint x="-18426" z="-22896" y="473">	</waypoint>
	<!-- # 45 --><waypoint x="-18378" z="-22793" y="470">	</waypoint>
	<!-- # 46 --><waypoint x="-18362" z="-22696" y="483" tag="incomplete">	</waypoint>
</waypoint>
</waypoints>
Now do I need place waypoints (go to housekeeper1 & 2) in this file too or does it load from a new file?
When I try to load the .xml file i get mismatched tag, so doing something wrong? :S

p.s. i made a 1 and 2 cause don't know if short way to class swap macro, to swap between my main warden and secondary scout (used mouseclick).

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

Re: Demonstration Battle by lolita

#6 Post by rock5 » Sat Jul 26, 2014 8:20 am

I had a quick look to see if I could see anything obvious and I noticed that at the "complete" and "incomplete" tags you have 2 </waypoint>. Each waypoint should only end in 1 </waypoint>.
  • 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

Draakje
Posts: 63
Joined: Sat Aug 10, 2013 6:24 am

Re: Demonstration Battle by lolita

#7 Post by Draakje » Sat Jul 26, 2014 8:24 am

adjusted:

Code: Select all

<waypoint>  ->  </waypoint>
still have mismatched tag

Draakje
Posts: 63
Joined: Sat Aug 10, 2013 6:24 am

Re: Demonstration Battle by lolita

#8 Post by Draakje » Sat Jul 26, 2014 8:27 am

Sorry I can't follow :/
what do I have to do?

Draakje
Posts: 63
Joined: Sat Aug 10, 2013 6:24 am

Re: Demonstration Battle by lolita

#9 Post by Draakje » Sat Jul 26, 2014 8:28 am

the 2 waypoints are same route to housekeeper, only don't know how make easier for swap class myself

Draakje
Posts: 63
Joined: Sat Aug 10, 2013 6:24 am

Re: Demonstration Battle by lolita

#10 Post by Draakje » Sat Jul 26, 2014 8:51 am

Still some mismatched tag in it. This want u ment i hope :)

Code: Select all

</onLoad>	
	<!-- #  1 --><waypoint x="-18346" z="-22692" y="469">
   	checkCondition()   
   	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
         if 61 > player.Level then -- go back to house and change class
            __WPL:setWaypointIndex(__WPL:findWaypointTag("go to housekeeper2"));
         else   
            player:target_NPC(119856)
            AcceptQuestByName(425124)
         end
</waypoint>
	
</waypoint>


</waypoint>
	<!-- #  2 --><waypoint x="-18346" z="-22692" y="469" tag="incomplete">
			player:target_NPC(119856)
			sendMacro("ChoiceOption(1);")
	<!-- #  3 --><waypoint x="-18331" z="-22677" y="469">
			doquest()
			checkLoopCondition()
	<!-- #  4 --><waypoint x="-18359" z="-22701" y="483" tag="go to housekeeper1">	  </waypoint>
	<!-- #  5 --><waypoint x="-18359" z="-22736" y="489">	player:mount(); </waypoint>
	<!-- #  6 --><waypoint x="-18355" z="-22800" y="476">	</waypoint>
	<!-- #  7 --><waypoint x="-18337" z="-22897" y="476">	</waypoint>
	<!-- #  8 --><waypoint x="-18302" z="-22955" y="475">	</waypoint>
	<!-- #  9 --><waypoint x="-18237" z="-23000" y="442">	</waypoint>
	<!-- # 10 --><waypoint x="-18136" z="-23023" y="473">	</waypoint>
	<!-- # 11 --><waypoint x="-18035" z="-23036" y="488">	</waypoint>
	<!-- # 12--><waypoint x="-17928" z="-23058" y="487">	</waypoint>
	<!-- # 13 --><waypoint x="-17838" z="-23111" y="482">	</waypoint>
	<!-- # 14 --><waypoint x="-17759" z="-23176" y="493">	</waypoint>
	<!-- # 15 --><waypoint x="-17709" z="-23245" y="519">	</waypoint>
	<!-- # 16 --><waypoint x="-17665" z="-23327" y="556">	</waypoint>
	<!-- # 17 --><waypoint x="-17637" z="-23407" y="564">	</waypoint>
	<!-- # 18 --><waypoint x="-17609" z="-23514" y="565">	</waypoint>
	<!-- # 19 --><waypoint x="-17559" z="-23536" y="568">	</waypoint>
	<!-- # 20 --><waypoint x="-17512" z="-23513" y="586">	</waypoint>
	<!-- # 21 --><waypoint x="-17466" z="-23472" y="608">	</waypoint>
	<!-- # 22 --><waypoint x="-17408" z="-23426" y="631">	</waypoint>
	<!-- # 23 --><waypoint x="-17339" z="-23379" y="636">	</waypoint>
	<!-- # 24 --><waypoint x="-17286" z="-23379" y="636">	</waypoint>
	<!-- # 25 --><waypoint x="-17236" z="-23439" y="636">	</waypoint>
	<!-- # 26 --><waypoint x="-17223" z="-23500" y="633">
			player:target_NPC(120185) -- John Roger
			ChoiceOptionByName(getTEXT("SO_110581_1")) -- 'I want to switch my primary and secondary class.'
			player:mouseclickL(315, 208, 1920, 1058)
			player:mouseclickL(255, 254, 1920, 1058)
			player:mouseclickL(112, 368, 1920, 1058)
	</waypoint>
	<!-- # 27 --><waypoint x="-17223" z="-23501" y="633">	 player:mount(); </waypoint>
	<!-- # 28 --><waypoint x="-17203" z="-23460" y="634">	</waypoint>
	<!-- # 29 --><waypoint x="-17266" z="-23399" y="637">	</waypoint>
	<!-- # 30 --><waypoint x="-17310" z="-23359" y="637">	</waypoint>
	<!-- # 31 --><waypoint x="-17369" z="-23365" y="634">	</waypoint>
	<!-- # 32 --><waypoint x="-17439" z="-23394" y="631">	</waypoint>
	<!-- # 33 --><waypoint x="-17522" z="-23397" y="615">	</waypoint>
	<!-- # 34 --><waypoint x="-17606" z="-23388" y="567">	</waypoint>
	<!-- # 35 --><waypoint x="-17637" z="-23339" y="563">	</waypoint>
	<!-- # 36 --><waypoint x="-17689" z="-23240" y="532">	</waypoint>
	<!-- # 37 --><waypoint x="-17767" z="-23156" y="486">	</waypoint>
	<!-- # 38 --><waypoint x="-17852" z="-23090" y="487">	</waypoint>
	<!-- # 39 --><waypoint x="-17917" z="-23054" y="482">	</waypoint>
	<!-- # 40 --><waypoint x="-18022" z="-23024" y="486">	</waypoint>
	<!-- # 41 --><waypoint x="-18128" z="-23022" y="486">	</waypoint>
	<!-- # 42 --><waypoint x="-18241" z="-23038" y="442">	</waypoint>
	<!-- # 43 --><waypoint x="-18365" z="-23070" y="442">	</waypoint>
	<!-- # 44 --><waypoint x="-18464" z="-23087" y="439">	</waypoint>
	<!-- # 45 --><waypoint x="-18487" z="-23061" y="444">	</waypoint>
	<!-- # 46 --><waypoint x="-18471" z="-22996" y="470">	</waypoint>
	<!-- # 47 --><waypoint x="-18426" z="-22896" y="473">	</waypoint>
	<!-- # 48 --><waypoint x="-18378" z="-22793" y="470">	</waypoint>
	<!-- # 49 --><waypoint x="-18362" z="-22696" y="483" tag="complete">	</waypoint>

	<!-- # 50 --><waypoint x="-18346" z="-22692" y="469" tag="complete">
			player:target_NPC(119856);
			CompleteQuestByName(425124);
<!-- #  1 --><waypoint x="-18359" z="-22709" y="486" tag="go to housekeeper2">    </waypoint>
	<!-- # 51 --><waypoint x="-18358" z="-22773" y="471">  player:mount();	</waypoint>
	<!-- # 52 --><waypoint x="-18353" z="-22821" y="470">	</waypoint>
	<!-- # 53 --><waypoint x="-18322" z="-22933" y="470">	</waypoint>
	<!-- # 54 --><waypoint x="-18276" z="-22977" y="470">	</waypoint>
	<!-- # 55 --><waypoint x="-18188" z="-23011" y="458">	</waypoint>
	<!-- # 56 --><waypoint x="-18103" z="-23022" y="481">	</waypoint>
	<!-- # 57 --><waypoint x="-17984" z="-23038" y="482">	</waypoint>
	<!-- # 58 --><waypoint x="-17908" z="-23067" y="488">	</waypoint>
	<!-- # 59 --><waypoint x="-17827" z="-23118" y="482">	</waypoint>
	<!-- # 60 --><waypoint x="-17741" z="-23196" y="499">	</waypoint>
	<!-- # 61 --><waypoint x="-17681" z="-23281" y="539">	</waypoint>
	<!-- # 62 --><waypoint x="-17636" z="-23418" y="563">	</waypoint>
	<!-- # 63 --><waypoint x="-17618" z="-23512" y="569">	</waypoint>
	<!-- # 64 --><waypoint x="-17565" z="-23541" y="568">	</waypoint>
	<!-- # 65 --><waypoint x="-17505" z="-23511" y="582">	</waypoint>
	<!-- # 66 --><waypoint x="-17449" z="-23464" y="613">	</waypoint>
	<!-- # 67 --><waypoint x="-17388" z="-23427" y="637">	</waypoint>
	<!-- # 68 --><waypoint x="-17290" z="-23428" y="634">	</waypoint>
	<!-- # 69 --><waypoint x="-17228" z="-23443" y="636">	</waypoint>
	<!-- # 70 --><waypoint x="-17223" z="-23501" y="633">
			player:target_NPC(120185) -- John Roger
			ChoiceOptionByName(getTEXT("SO_110581_1")) -- 'I want to switch my primary and secondary class.'
			player:mouseclickL(312, 208, 1920, 1058)
			player:mouseclickL(223, 273, 1920, 1058)
			player:mouseclickL(114, 365, 1920, 1058)
	</waypoint>
	<!-- # 71 --><waypoint x="-17223" z="-23501" y="634"> player:mount();	</waypoint>
	<!-- # 72 --><waypoint x="-17213" z="-23476" y="633">	</waypoint>
	<!-- # 73 --><waypoint x="-17256" z="-23423" y="634">	</waypoint>
	<!-- # 74 --><waypoint x="-17318" z="-23356" y="635">	</waypoint>
	<!-- # 75 --><waypoint x="-17394" z="-23393" y="634">	</waypoint>
	<!-- # 76 --><waypoint x="-17509" z="-23457" y="599">	</waypoint>
	<!-- # 77 --><waypoint x="-17593" z="-23413" y="566">	</waypoint>
	<!-- # 78 --><waypoint x="-17668" z="-23301" y="549">	</waypoint>
	<!-- # 79 --><waypoint x="-17761" z="-23169" y="489">	</waypoint>
	<!-- # 80 --><waypoint x="-17824" z="-23106" y="485">	</waypoint>
	<!-- # 81 --><waypoint x="-17933" z="-23046" y="485">	</waypoint>
	<!-- # 82 --><waypoint x="-18044" z="-23006" y="485">	</waypoint>
	<!-- # 83 --><waypoint x="-18243" z="-23029" y="439">	</waypoint>
	<!-- # 84 --><waypoint x="-18337" z="-23066" y="439">	</waypoint>
	<!-- # 85 --><waypoint x="-18430" z="-23090" y="439">	</waypoint>
	<!-- # 86 --><waypoint x="-18481" z="-23071" y="438">	</waypoint>
	<!-- # 87 --><waypoint x="-18475" z="-23005" y="464">	</waypoint>
	<!-- # 88 --><waypoint x="-18407" z="-22855" y="474">	</waypoint>
	<!-- # 89 --><waypoint x="-18366" z="-22727" y="484">	</waypoint>
	<!-- # 90 --><waypoint x="-18359" z="-22701" y="483" ">	</waypoint>
</waypoints>

Draakje
Posts: 63
Joined: Sat Aug 10, 2013 6:24 am

Re: Demonstration Battle by lolita

#11 Post by Draakje » Sat Jul 26, 2014 8:56 am

fixed some small written mistakes, checking newest one if works

Draakje
Posts: 63
Joined: Sat Aug 10, 2013 6:24 am

Re: Demonstration Battle by lolita

#12 Post by Draakje » Sat Jul 26, 2014 8:57 am

still getting error mismatched tag damn :(

Code: Select all

</onLoad>	
	<!-- #  1 --><waypoint x="-18346" z="-22692" y="469">
   	checkCondition()   
   	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
         if 61 > player.Level then -- go back to house and change class
            __WPL:setWaypointIndex(__WPL:findWaypointTag("go to housekeeper2"));
         else   
            player:target_NPC(119856)
            AcceptQuestByName(425124)
         end
</waypoint>
	<!-- #  2 --><waypoint x="-18346" z="-22692" y="469" tag="incomplete">
			player:target_NPC(119856)
			sendMacro("ChoiceOption(1);")
	<!-- #  3 --><waypoint x="-18331" z="-22677" y="469">
			doquest()
			checkLoopCondition()
	<!-- #  4 --><waypoint x="-18359" z="-22701" y="483" tag="go to housekeeper1">	  </waypoint>
	<!-- #  5 --><waypoint x="-18359" z="-22736" y="489">	player:mount(); </waypoint>
	<!-- #  6 --><waypoint x="-18355" z="-22800" y="476">	</waypoint>
	<!-- #  7 --><waypoint x="-18337" z="-22897" y="476">	</waypoint>
	<!-- #  8 --><waypoint x="-18302" z="-22955" y="475">	</waypoint>
	<!-- #  9 --><waypoint x="-18237" z="-23000" y="442">	</waypoint>
	<!-- # 10 --><waypoint x="-18136" z="-23023" y="473">	</waypoint>
	<!-- # 11 --><waypoint x="-18035" z="-23036" y="488">	</waypoint>
	<!-- # 12--><waypoint x="-17928" z="-23058" y="487">	</waypoint>
	<!-- # 13 --><waypoint x="-17838" z="-23111" y="482">	</waypoint>
	<!-- # 14 --><waypoint x="-17759" z="-23176" y="493">	</waypoint>
	<!-- # 15 --><waypoint x="-17709" z="-23245" y="519">	</waypoint>
	<!-- # 16 --><waypoint x="-17665" z="-23327" y="556">	</waypoint>
	<!-- # 17 --><waypoint x="-17637" z="-23407" y="564">	</waypoint>
	<!-- # 18 --><waypoint x="-17609" z="-23514" y="565">	</waypoint>
	<!-- # 19 --><waypoint x="-17559" z="-23536" y="568">	</waypoint>
	<!-- # 20 --><waypoint x="-17512" z="-23513" y="586">	</waypoint>
	<!-- # 21 --><waypoint x="-17466" z="-23472" y="608">	</waypoint>
	<!-- # 22 --><waypoint x="-17408" z="-23426" y="631">	</waypoint>
	<!-- # 23 --><waypoint x="-17339" z="-23379" y="636">	</waypoint>
	<!-- # 24 --><waypoint x="-17286" z="-23379" y="636">	</waypoint>
	<!-- # 25 --><waypoint x="-17236" z="-23439" y="636">	</waypoint>
	<!-- # 26 --><waypoint x="-17223" z="-23500" y="633">
			player:target_NPC(120185) -- John Roger
			ChoiceOptionByName(getTEXT("SO_110581_1")) -- 'I want to switch my primary and secondary class.'
			player:mouseclickL(315, 208, 1920, 1058)
			player:mouseclickL(255, 254, 1920, 1058)
			player:mouseclickL(112, 368, 1920, 1058)
	</waypoint>
	<!-- # 27 --><waypoint x="-17223" z="-23501" y="633">	 player:mount(); </waypoint>
	<!-- # 28 --><waypoint x="-17203" z="-23460" y="634">	</waypoint>
	<!-- # 29 --><waypoint x="-17266" z="-23399" y="637">	</waypoint>
	<!-- # 30 --><waypoint x="-17310" z="-23359" y="637">	</waypoint>
	<!-- # 31 --><waypoint x="-17369" z="-23365" y="634">	</waypoint>
	<!-- # 32 --><waypoint x="-17439" z="-23394" y="631">	</waypoint>
	<!-- # 33 --><waypoint x="-17522" z="-23397" y="615">	</waypoint>
	<!-- # 34 --><waypoint x="-17606" z="-23388" y="567">	</waypoint>
	<!-- # 35 --><waypoint x="-17637" z="-23339" y="563">	</waypoint>
	<!-- # 36 --><waypoint x="-17689" z="-23240" y="532">	</waypoint>
	<!-- # 37 --><waypoint x="-17767" z="-23156" y="486">	</waypoint>
	<!-- # 38 --><waypoint x="-17852" z="-23090" y="487">	</waypoint>
	<!-- # 39 --><waypoint x="-17917" z="-23054" y="482">	</waypoint>
	<!-- # 40 --><waypoint x="-18022" z="-23024" y="486">	</waypoint>
	<!-- # 41 --><waypoint x="-18128" z="-23022" y="486">	</waypoint>
	<!-- # 42 --><waypoint x="-18241" z="-23038" y="442">	</waypoint>
	<!-- # 43 --><waypoint x="-18365" z="-23070" y="442">	</waypoint>
	<!-- # 44 --><waypoint x="-18464" z="-23087" y="439">	</waypoint>
	<!-- # 45 --><waypoint x="-18487" z="-23061" y="444">	</waypoint>
	<!-- # 46 --><waypoint x="-18471" z="-22996" y="470">	</waypoint>
	<!-- # 47 --><waypoint x="-18426" z="-22896" y="473">	</waypoint>
	<!-- # 48 --><waypoint x="-18378" z="-22793" y="470">	</waypoint>
	<!-- # 49 --><waypoint x="-18362" z="-22696" y="483" tag="complete">	</waypoint>
			player:target_NPC(119856);
			CompleteQuestByName(425124);
	<!-- # 50 --><waypoint x="-18359" z="-22709" y="486" tag="go to housekeeper2">    </waypoint>
	<!-- # 51 --><waypoint x="-18358" z="-22773" y="471">  player:mount();	</waypoint>
	<!-- # 52 --><waypoint x="-18353" z="-22821" y="470">	</waypoint>
	<!-- # 53 --><waypoint x="-18322" z="-22933" y="470">	</waypoint>
	<!-- # 54 --><waypoint x="-18276" z="-22977" y="470">	</waypoint>
	<!-- # 55 --><waypoint x="-18188" z="-23011" y="458">	</waypoint>
	<!-- # 56 --><waypoint x="-18103" z="-23022" y="481">	</waypoint>
	<!-- # 57 --><waypoint x="-17984" z="-23038" y="482">	</waypoint>
	<!-- # 58 --><waypoint x="-17908" z="-23067" y="488">	</waypoint>
	<!-- # 59 --><waypoint x="-17827" z="-23118" y="482">	</waypoint>
	<!-- # 60 --><waypoint x="-17741" z="-23196" y="499">	</waypoint>
	<!-- # 61 --><waypoint x="-17681" z="-23281" y="539">	</waypoint>
	<!-- # 62 --><waypoint x="-17636" z="-23418" y="563">	</waypoint>
	<!-- # 63 --><waypoint x="-17618" z="-23512" y="569">	</waypoint>
	<!-- # 64 --><waypoint x="-17565" z="-23541" y="568">	</waypoint>
	<!-- # 65 --><waypoint x="-17505" z="-23511" y="582">	</waypoint>
	<!-- # 66 --><waypoint x="-17449" z="-23464" y="613">	</waypoint>
	<!-- # 67 --><waypoint x="-17388" z="-23427" y="637">	</waypoint>
	<!-- # 68 --><waypoint x="-17290" z="-23428" y="634">	</waypoint>
	<!-- # 69 --><waypoint x="-17228" z="-23443" y="636">	</waypoint>
	<!-- # 70 --><waypoint x="-17223" z="-23501" y="633">
			player:target_NPC(120185) -- John Roger
			ChoiceOptionByName(getTEXT("SO_110581_1")) -- 'I want to switch my primary and secondary class.'
			player:mouseclickL(312, 208, 1920, 1058)
			player:mouseclickL(223, 273, 1920, 1058)
			player:mouseclickL(114, 365, 1920, 1058)
	</waypoint>
	<!-- # 71 --><waypoint x="-17223" z="-23501" y="634"> player:mount();	</waypoint>
	<!-- # 72 --><waypoint x="-17213" z="-23476" y="633">	</waypoint>
	<!-- # 73 --><waypoint x="-17256" z="-23423" y="634">	</waypoint>
	<!-- # 74 --><waypoint x="-17318" z="-23356" y="635">	</waypoint>
	<!-- # 75 --><waypoint x="-17394" z="-23393" y="634">	</waypoint>
	<!-- # 76 --><waypoint x="-17509" z="-23457" y="599">	</waypoint>
	<!-- # 77 --><waypoint x="-17593" z="-23413" y="566">	</waypoint>
	<!-- # 78 --><waypoint x="-17668" z="-23301" y="549">	</waypoint>
	<!-- # 79 --><waypoint x="-17761" z="-23169" y="489">	</waypoint>
	<!-- # 80 --><waypoint x="-17824" z="-23106" y="485">	</waypoint>
	<!-- # 81 --><waypoint x="-17933" z="-23046" y="485">	</waypoint>
	<!-- # 82 --><waypoint x="-18044" z="-23006" y="485">	</waypoint>
	<!-- # 83 --><waypoint x="-18243" z="-23029" y="439">	</waypoint>
	<!-- # 84 --><waypoint x="-18337" z="-23066" y="439">	</waypoint>
	<!-- # 85 --><waypoint x="-18430" z="-23090" y="439">	</waypoint>
	<!-- # 86 --><waypoint x="-18481" z="-23071" y="438">	</waypoint>
	<!-- # 87 --><waypoint x="-18475" z="-23005" y="464">	</waypoint>
	<!-- # 88 --><waypoint x="-18407" z="-22855" y="474">	</waypoint>
	<!-- # 89 --><waypoint x="-18366" z="-22727" y="484">	</waypoint>
	<!-- # 90 --><waypoint x="-18359" z="-22701" y="483" ">	</waypoint>
</waypoints>

Draakje
Posts: 63
Joined: Sat Aug 10, 2013 6:24 am

Re: Demonstration Battle by lolita

#13 Post by Draakje » Sat Jul 26, 2014 9:00 am

file in attachment
Attachments
Demonstration_Battle_by_lolita.xml
(10.2 KiB) Downloaded 217 times

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

Re: Demonstration Battle by lolita

#14 Post by rock5 » Sat Jul 26, 2014 9:43 am

I fixed all the xml tag errors I could see. Try this version.
Demonstration_Battle_by_lolita.xml
(10.23 KiB) Downloaded 236 times
I'll try to better explain xml tags. Every xml tag, eg. <onload> has to have a corresponding closing tag, eg. </onload>. Notice the "/", that means it's a closing tag.

Open tag
<waypoints>
closing tag
</waypoints>
Open tag
<waypoint x="-18346" z="-22692" y="469">
closing tag
</waypoint>
Any lua code has to be between "waypoint" or "onload" tags.

Note: anything that starts with <!-- and ends with --> are comments if you didn't already know. Also most xml files start with

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
This is just some code that editors can read to know what encoding to display the file as.

Hope that clears some things up.
  • 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

Draakje
Posts: 63
Joined: Sat Aug 10, 2013 6:24 am

Re: Demonstration Battle by lolita

#15 Post by Draakje » Sat Jul 26, 2014 10:34 am

okay thanks now I know bit more :)

the file u've sent, still have prob (changed name to demon_ver1.0)
Image

Draakje
Posts: 63
Joined: Sat Aug 10, 2013 6:24 am

Re: Demonstration Battle by lolita

#16 Post by Draakje » Sat Jul 26, 2014 10:39 am

okay fixed problem, bot finaly running now :D
but now have fix cause he keeps want to kill mobs it can't fight now atm
hmm maybe place type travel in it

Draakje
Posts: 63
Joined: Sat Aug 10, 2013 6:24 am

Re: Demonstration Battle by lolita

#17 Post by Draakje » Sat Jul 26, 2014 1:11 pm

Got it finaly running up with quit lot changes i had to do :), but thanks with help rock5
Just want one more thing to change is the class swap at the housekeep. I'm using MouseClicks atm and if screen is not at top I doesn't work anymore :/
Checking around how to change that part

Code: Select all

			player:target_NPC(120185) -- John Roger
			ChoiceOptionByName(getTEXT("SO_110581_1")) -- 'I want to switch my primary and secondary class.'
			yrest(500)
			player:mouseclickL(320, 211, 1920, 1058)  ---  Choose Option
			player:mouseclickL(227, 257, 1920, 1058)  ---  Select Scout
			player:mouseclickL(109, 358, 1920, 1058)  ---  Ok
			player:mouseclickL(872, 257, 1920, 1058)  --- Confirm class swap

Code: Select all

			player:target_NPC(120185) -- John Roger
			ChoiceOptionByName(getTEXT("SO_110581_1")) -- 'I want to switch my primary and secondary class.'
			yrest(500)
			player:mouseclickL(311, 208, 1920, 1058)  ---  Choose Option
			player:mouseclickL(236, 278, 1920, 1058)  ---  Select Warden
			player:mouseclickL(112, 361, 1920, 1058)  ---  Ok
			player:mouseclickL(867, 259, 1920, 1058)   --- Confirm class swap

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

Re: Demonstration Battle by lolita

#18 Post by rock5 » Sat Jul 26, 2014 1:40 pm

The best way to do it would depend on what you have available. Example if you have an addon that allows you to change the class with one click such as Streamline, then you could just use

Code: Select all

player:target_NPC("npc name")
RoMCode("ChoiceOption(3)")
If you don't have any such addon I believe some code was posted a while back that didn't require an addon.

Found it. http://www.solarstrike.net/phpBB3/viewt ... 035#p55035. There are a few examples there.
  • 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

Draakje
Posts: 63
Joined: Sat Aug 10, 2013 6:24 am

Re: Demonstration Battle by lolita

#19 Post by Draakje » Sat Jul 26, 2014 2:07 pm

yep that was last piece I was missing :)
Those who want ill add file in attachment :d

thx for the help

EDITED:
Demon_Ver1.0

v1.0
** Do daily quest Demonstration Battle in ancient kingdom in rorazan
** Use daily quest reset ticket if you have some
** Added class swap after quest complete; between ur main and secondary class (notice needs adjustment in file to ur own classes!)
Waypoint 26 -> Take secondary class example:

Code: Select all

swapClass(CLASS_SCOUT,CLASS_NONE)
Waypoint 70 -> Take main class:

Code: Select all

swapClass(CLASS_WARDEN,CLASS_NONE)
** Start position NPC: Anthony Taz
Attachments
Demon_ ver1.0.xml
(11.57 KiB) Downloaded 291 times
Last edited by Draakje on Sun Jul 27, 2014 4:57 am, edited 1 time in total.

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

Re: Demonstration Battle by lolita

#20 Post by rock5 » Sat Jul 26, 2014 11:38 pm

You might want to add a list of features that your version has (similar to the OPs first post) so users know how it's different to the original version and why they should use it.
  • 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

Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests