Page 1 of 1

char wont mount

Posted: Fri Jun 19, 2015 8:52 pm
by pugzilla
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

Re: char wont mount

Posted: Fri Jun 19, 2015 9:44 pm
by Hulabob
try this

Code: Select all

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

Re: char wont mount

Posted: Fri Jun 19, 2015 10:29 pm
by pugzilla
hm didnt seem to help same result. first character mounts and does the daily logs and loads next and just starts dailys

Re: char wont mount

Posted: Fri Jun 19, 2015 11:27 pm
by noobbotter
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.

Re: char wont mount

Posted: Sat Jun 20, 2015 4:30 am
by rock5
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.

Re: char wont mount

Posted: Sat Jun 20, 2015 7:00 am
by pugzilla
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>

Re: char wont mount

Posted: Sat Jun 20, 2015 9:26 am
by pugzilla
i fixed it problem solved