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 » Sat Feb 06, 2010 8:23 am

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: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: Auto repair, and loading paths

#2 Post by Administrator » Sat Feb 06, 2010 8:45 am

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 » Sat Feb 06, 2010 9:09 am

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

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 » Tue Feb 09, 2010 1:24 am

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

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 106 guests