Page 1 of 1

Huge problem.

Posted: Mon Mar 12, 2012 6:06 am
by zAderOni
Hellow there. I am a new user ( matter of days )
The problem i got with my bot is that i cant run for long time.
Bot simply stucks when i enter KS. Sometimes works sometimes it wont.
The waypoint i use is this :

!-- # 223 --><waypoint x="-17936" z="10586" type="TRAVEL"> </waypoint>
<!-- # 224 --><waypoint x="-18160" z="10707" type="TRAVEL"> </waypoint>
<!-- # 225 --><waypoint x="-18288" z="11068" type="TRAVEL"> </waypoint>
<!-- # 226 --><waypoint x="-18416" z="11681" type="TRAVEL"> changeProfileOption("MAX_TARGET_DIST", 90); </waypoint>
<!-- # 227 --><waypoint x="-18546" z="12468" type="TRAVEL"> </waypoint>
<!-- # 228 --><waypoint x="-18549" z="12522" type="TRAVEL"> waitForLoadingScreen(); yrest(4000) ; player:update(); </waypoint>

I use the latest version of the bot. The log shows that bot try to unstuck my character.
This bug happens by that way :

1. Player moves to the portal.
2. Loading screen
3. Player is in KS ( At start )
4. And by the first second he starts jump and doing stuff by his own ^^

The normal way :

1. Player moves to the portal.
2. Loading screen
3. Player is in KS ( At start )
4. Waits 4 second and then moves to the next waypoint to kill mobs.

I use scout and i use same waypoints with my friend. He has priest and it works perfect. T_T

I will post in 30 minutes pic with the log that bot shows.

This make me freak i cant understand whats wrong.

Re: Huge problem.

Posted: Mon Mar 12, 2012 7:38 am
by lisa
try this

Code: Select all

<!-- # 223 --><waypoint x="-17936" z="10586" type="TRAVEL"> </waypoint>
<!-- # 224 --><waypoint x="-18160" z="10707" type="TRAVEL"> </waypoint>
<!-- # 225 --><waypoint x="-18288" z="11068" type="TRAVEL"> </waypoint>

	<!-- # 226 --><waypoint x="-18416" z="11681" type="TRAVEL"> </waypoint>
	<!-- # 225 --><waypoint x="-18528" z="12368" tag="enter" type="TRAVEL">
	changeProfileOption("QUICK_TURN", false)
	</waypoint>	
	<!-- # 227 --><waypoint x="-18576" z="12498" type="TRAVEL">
	local ss = os.time()
	repeat
		waitForLoadingScreen(20);
		if getZoneId() == 6 or getZoneId() == 1006 then
			__WPL:setWaypointIndex(__WPL:findWaypointTag("enter"));
		end
	until getZoneId() ~= 6 and getZoneId() ~= 1006
	yrest(3000)
	</waypoint>

Re: Huge problem.

Posted: Mon Mar 12, 2012 7:49 am
by zAderOni
I used the edited waypoints u gave me but the bots wont start. It gives me this error :

Re: Huge problem.

Posted: Mon Mar 12, 2012 10:38 am
by lisa
you probably copied it wrong, maybe try again?
or post what you have and it should be easy to pick up what is wrong with it, just use code tags this time thx

Re: Huge problem.

Posted: Mon Mar 12, 2012 10:47 am
by zAderOni
see what i have done wrong.
I uploaded my waypoints too.

Re: Huge problem.

Posted: Mon Mar 12, 2012 11:05 am
by rock5
You don't need to do "getZoneId() == 6 or getZoneId() == 1006" anymore. getZoneId() should always return just the zone now regardless of the channel. So

Code: Select all

if getZoneId() == 6 then
should suffice.

Re: Huge problem.

Posted: Mon Mar 12, 2012 1:31 pm
by zAderOni
Thnx x100
Working fine till now w/o problems.
If something happens i will report here.
Thnx again for your help :)

Re: Huge problem.

Posted: Mon Mar 12, 2012 7:41 pm
by lisa
rock5 wrote:You don't need to do "getZoneId() == 6 or getZoneId() == 1006" anymore. getZoneId() should always return just the zone now regardless of the channel. So

Code: Select all

if getZoneId() == 6 then
should suffice.
Hmm last time I checked it was still not working properly, was a few weeks back though.

Re: Huge problem.

Posted: Mon Mar 12, 2012 11:53 pm
by rock5
lisa wrote:Hmm last time I checked it was still not working properly, was a few weeks back though.
Just tested it again. Works fine. I think it was fixed about a month ago.