Renew <onload> by switching the waypoints
Posted: Wed Sep 28, 2011 2:23 pm
Hey guys, hello rock
Now I know, why my bot sucks; all the functions loaded in <onload> </onload> by the first waypoint file will continuing even when I change the WP-file so it make some bad mistakes! For Example in the first WP-file
<onload>
if(player.Level >= 10) then
loadPaths("A")
end
</onload>
the second WP-file
<onload>
if(player.Level >= 10) then
loadPaths("BB")
end
</onload>
so using the second wp-file the bot take the procedure from the first one :-/
How can I clear memory or reload/renew the onload header in each waypoint-file?
thx
Now I know, why my bot sucks; all the functions loaded in <onload> </onload> by the first waypoint file will continuing even when I change the WP-file so it make some bad mistakes! For Example in the first WP-file
<onload>
if(player.Level >= 10) then
loadPaths("A")
end
</onload>
the second WP-file
<onload>
if(player.Level >= 10) then
loadPaths("BB")
end
</onload>
so using the second wp-file the bot take the procedure from the first one :-/
How can I clear memory or reload/renew the onload header in each waypoint-file?
thx