Auto repair, and loading paths

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
extremeuser
Posts: 57
Joined: Wed Jul 01, 2009 12:52 am

Auto repair, and loading paths

#1 Post 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 :)
User avatar
Administrator
Site Admin
Posts: 5344
Joined: Sat Jan 05, 2008 4:21 pm

Re: Auto repair, and loading paths

#2 Post 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.
d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

Re: Auto repair, and loading paths

#3 Post 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' :-)
The RoM Bot Online Wiki needs your help!
extremeuser
Posts: 57
Joined: Wed Jul 01, 2009 12:52 am

Re: Auto repair, and loading paths

#4 Post 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
d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

Re: Auto repair, and loading paths

#5 Post by d003232 »

It would help if you post your 'test.xml'.

And also post the content of your MM window with the protocol.
The RoM Bot Online Wiki needs your help!
Post Reply