char wont mount

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.
Post Reply
Message
Author
pugzilla
Posts: 43
Joined: Tue Jun 16, 2015 3:58 pm

char wont mount

#1 Post by pugzilla » Fri Jun 19, 2015 8:52 pm

first char mounts up fine, after it completes and logs into the next it wont mount, im not sure what im missing

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<onload>
   __WPL:setWaypointIndex(__WPL:findWaypointTag("quest"))
player:mount()
CharList = {
      {account=46 , chars={1}},
      {account=57 , chars={2}},
   }

</onload>
	<!-- #  1 --><waypoint x="-2655" z="-17952" y="826" tag="quest">
			player:target_NPC(120577) -- Forem Mone
			AcceptQuestByName(425495) -- Keeping the Veiled Encampment Disguised
	</waypoint>
	<!-- #  2 --><waypoint x="-2814" z="-18157" y="828">	</waypoint>
	<!-- #  3 --><waypoint x="-2938" z="-18017" y="827">
			inventory:useItem(241196)
	</waypoint>
	<!-- #  4 --><waypoint x="-2807" z="-18156" y="827">
			inventory:useItem(241196)
	</waypoint>
	<!-- #  5 --><waypoint x="-2650" z="-17953" y="827">
			inventory:useItem(241196)
			player:target_NPC(120577) -- Forem Mone
			CompleteQuestByName(425495) -- Keeping the Veiled Encampment Disguised
			if 10 > RoMScript("Daily_count()") then
         __WPL:setWaypointIndex(__WPL:findWaypointTag("quest"))
      else
	 SetCharList(CharList)
         LoginNextChar()
         loadProfile()
         player:update()
         __WPL:setWaypointIndex(__WPL:findWaypointTag("quest"))
      end
	</waypoint>
</waypoints>

thanks

Hulabob
Posts: 8
Joined: Wed Feb 25, 2015 10:21 pm

Re: char wont mount

#2 Post by Hulabob » Fri Jun 19, 2015 9:44 pm

try this

Code: Select all

if not player.Mounted 
		then player:mount()
			     end

pugzilla
Posts: 43
Joined: Tue Jun 16, 2015 3:58 pm

Re: char wont mount

#3 Post by pugzilla » Fri Jun 19, 2015 10:29 pm

hm didnt seem to help same result. first character mounts and does the daily logs and loads next and just starts dailys

noobbotter
Posts: 527
Joined: Fri Aug 31, 2012 1:15 pm

Re: char wont mount

#4 Post by noobbotter » Fri Jun 19, 2015 11:27 pm

problem is the mount is in the onload which happens with your first character... second character goes straight to waypoint "quest". try putting the mount in the "quest" waypoint, or right after the change character command.

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

Re: char wont mount

#5 Post by rock5 » Sat Jun 20, 2015 4:30 am

Even though it's not strictly necessary, it's common practice to reload a waypoint file when changing characters. For 2 main reasons. 1. so that any code in the onload gets rerun for each character and 2. so that the bot can do it's thing and find the nearest waypoint to start. In your case the second point doesn't apply because you are forcing it to start at the first waypoint.

So you could have in the onload

Code: Select all

player:mount()
__WPL:setWaypointIndex(__WPL:findWaypointTag("quest"))
Then when changing character do

Code: Select all

LoginNextChar()
loadProfile()
player:update()
loadPaths(__WPL.FileName)
Note: the onload will do the mount and set the 'quest' 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

pugzilla
Posts: 43
Joined: Tue Jun 16, 2015 3:58 pm

Re: char wont mount

#6 Post by pugzilla » Sat Jun 20, 2015 7:00 am

i must still be doing something wrong this is what i changed it to. both didnt seem to work

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<onload>
player:mount()
__WPL:setWaypointIndex(__WPL:findWaypointTag("quest"))
CharList = {
      {account=46 , chars={1}},
      {account=57 , chars={2}},
   }

</onload>
	<!-- #  1 --><waypoint x="-2655" z="-17952" y="826" tag="quest">
			player:target_NPC(120577) -- Forem Mone
			AcceptQuestByName(425495) -- Keeping the Veiled Encampment Disguised
	</waypoint>
	<!-- #  2 --><waypoint x="-2814" z="-18157" y="828">	</waypoint>
	<!-- #  3 --><waypoint x="-2938" z="-18017" y="827">
			inventory:useItem(241196)
	</waypoint>
	<!-- #  4 --><waypoint x="-2807" z="-18156" y="827">
			inventory:useItem(241196)
	</waypoint>
	<!-- #  5 --><waypoint x="-2650" z="-17953" y="827">
			inventory:useItem(241196)
			player:target_NPC(120577) -- Forem Mone
			CompleteQuestByName(425495) -- Keeping the Veiled Encampment Disguised
			if 10 > RoMScript("Daily_count()") then
         __WPL:setWaypointIndex(__WPL:findWaypointTag("quest"))
      else
	SetCharList(CharList)
	LoginNextChar()
	loadProfile()
	player:update()
	loadPaths(__WPL:setWaypointIndex(__WPL:findWaypointTag("quest")))
      end
	</waypoint>
</waypoints>

pugzilla
Posts: 43
Joined: Tue Jun 16, 2015 3:58 pm

Re: char wont mount

#7 Post by pugzilla » Sat Jun 20, 2015 9:26 am

i fixed it problem solved

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests