Page 1 of 1

[BUG] __WPL:reverse();

Posted: Sun Nov 07, 2010 8:32 am
by jduartedj
Hi,
When i use __WPL:reverse(); the script starts running waypoints backwards ok, but when it finds a scripted waypoint (All i got there is a printf) its suddently switches somewhere else, I'm guessing to the nearest waypoint. Although it's not the first one, it's the second backwards waypoint (not 5 but 6 int he example) take a look:

Code: Select all

<!-- #  5 --><waypoint x="-18508" z="7843">	printf("Kal Turok King Heads: %d\n",inventory:itemTotalCount("Kal Turok King Head"));</waypoint>
<!-- #  6 --><waypoint x="-18223" z="7741">	printf("Kal Turok King Heads: %d\n",inventory:itemTotalCount("Kal Turok King Head"));</waypoint>
	<!-- #  7 --><waypoint x="-17914" z="7222">	</waypoint>
(...some more script-empty waypoints)
	<!-- # 17 --><waypoint x="-17096" z="7271">	</waypoint>
	<!-- # 18 --><waypoint x="-16749" z="7526">	</waypoint>
	<!-- # 19 --><waypoint x="-17219" z="7875">	</waypoint>
	<!-- # 20 --><waypoint x="-17487" z="7335">	</waypoint>
	<!-- # 21 --><waypoint x="-17772" z="6946">	</waypoint>
	<!-- # 22 --><waypoint x="-18361" z="6841">__WPL:reverse();	</waypoint>
Happened 2/2 times, here's what it shows:

Code: Select all

Clearing target.
Kal Turok King Heads: 210
Moving to waypoint #5, (-18508, 7843)
Kal Turok King Heads: 210
Moving to waypoint #18, (-16749, 7526)

AND

Moving to waypoint #7, (-17914, 7222)
Moving to waypoint #6, (-18223, 7741)
Kal Turok King Heads: 304
Moving to waypoint #5, (-18508, 7843)
Kal Turok King Heads: 304
Moving to waypoint #17, (-17096, 7271)

Re: [BUG] __WPL:reverse();

Posted: Sun Nov 07, 2010 10:27 am
by Giram
I don't know if this will help at all but i had problems using __WPL:reverse(); too and got it fixed after using different command.

http://www.solarstrike.net/phpBB3/viewtopic.php?p=13767

Re: [BUG] __WPL:reverse();

Posted: Sun Nov 07, 2010 3:39 pm
by jduartedj
Giram wrote:I don't know if this will help at all but i had problems using __WPL:reverse(); too and got it fixed after using different command.

http://www.solarstrike.net/phpBB3/viewtopic.php?p=13767

Thx but no thats not the case My meaning is to change direction once using reverse or change direction would be the same, the idea is the following

I activate the script when it is next to the last waypoint (22) and then it goes all the way to waypoint 1. it has a specific meaning that i don't think is relevant the matter at hand is that once it starts going backwards it simply abandons the waypoint and moves to a completely diferent one!

if you notice point 5 is quite close to point 17 or 18 and this is even closer than point 4 (-18733,7527).

I think this time it's the programming of "going backwards" that has a bug; I haven't looked at it myself but if i don't get an answer here i might do.