I might be missing a slight detail, tried a few things but can't get this exactly right.
<onDeath>
-- Additional Lua code to execute on death
-- pauseOnDeath(); -- Stop the script
-- player:logout(); -- logout
local dura = inventory:getMainHandDurability();
printf("Durability:%s\n", dura);
if( dura < 0.9 ) then
player.free_flag1 = true;
loadPaths("test");
end
</onDeath>
This part works fine, once it loads test.xml as below
(waypoints etc etc etc
loadPaths("main");
For some reason my loadpaths not working, tried a few dif combinations, i think i dont have the load paths just right, as at the end of the test.xml, it just repeats the same warpoints and won't load the main again
Quick help
Auto repair, and loading paths
- Administrator
- Site Admin
- Posts: 5307
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Auto repair, and loading paths
Ok, first you said that it's loading the path, then you said it's not working. Which is it? You've really got to be more precise.
Re: Auto repair, and loading paths
It would help if you post your 'test.xml'extremeuser wrote: For some reason my loadpaths not working, tried a few dif combinations, i think i dont have the load paths just right, as at the end of the test.xml, it just repeats the same warpoints and won't load the main again
Quick help
The RoM Bot Online Wiki needs your help!
-
- Posts: 57
- Joined: Wed Jul 01, 2009 12:52 am
Re: Auto repair, and loading paths
loadPaths("test");
that 1 runs
loading the main in the test profile doesnt. al it shows r waypoints then at the end, telling to load main profile! but it doesnt
that 1 runs
loading the main in the test profile doesnt. al it shows r waypoints then at the end, telling to load main profile! but it doesnt
Re: Auto repair, and loading paths
It would help if you post your 'test.xml'.
And also post the content of your MM window with the protocol.
And also post the content of your MM window with the protocol.
The RoM Bot Online Wiki needs your help!
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 106 guests