Page 1 of 1

Auto repair, and loading paths

Posted: Sat Feb 06, 2010 8:23 am
by extremeuser
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 :)

Re: Auto repair, and loading paths

Posted: Sat Feb 06, 2010 8:45 am
by Administrator
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

Posted: Sat Feb 06, 2010 9:09 am
by d003232
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 :)
It would help if you post your 'test.xml' :-)

Re: Auto repair, and loading paths

Posted: Sat Feb 06, 2010 9:17 am
by extremeuser
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

Re: Auto repair, and loading paths

Posted: Tue Feb 09, 2010 1:24 am
by d003232
It would help if you post your 'test.xml'.

And also post the content of your MM window with the protocol.