About player.lua

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
Rom Botter
Posts: 85
Joined: Wed Jul 21, 2010 11:05 am
Location: Holland

About player.lua

#1 Post by Rom Botter »

Hello scripters of the RoM bot,

First of all i would like to thank you all for making such an incredible bot (with self updating system which i have never seen with what type of bot whatsoever)

Now i have some questions about the player.lua, i myself have an edited player.lua so it always picks up the dropped buffs by mobs, and a little better aggro detect/unsticking/no wait after loot script...

What i was wondering, is if since revision i dunno 470? (i've only been using SVN to update for about 3 days now(and i love it btw)) there has been allot of changed in player.lua (e.g the memory based targeting system) if that is in the player.lua, or maybe in the pawn.lua or another .lua file...

Because i have edited the player.lua part by part, its hard for me to find the lines where exactly i edited the script, and dont like editing the script for hours when maybe the player.lua file will be updated again in a few days ^^

is it possible to copy my outdated player.lua over the new one, without having big consequences for my targeting/botting?

My thanks in advance for your answer.

Sincerely,

RoM Botter
User avatar
Administrator
Site Admin
Posts: 5353
Joined: Sat Jan 05, 2008 4:21 pm

Re: About player.lua

#2 Post by Administrator »

Normally, you should be able to merge your changes. Just don't delete your files when you do an SVN update, and it should automatically merge, or may ask you to confirm the merges (based on what has changed).
VoidMain
Posts: 187
Joined: Wed Apr 21, 2010 12:21 pm

Re: About player.lua

#3 Post by VoidMain »

Rom Botter wrote:Hello scripters of the RoM bot,

First of all i would like to thank you all for making such an incredible bot (with self updating system which i have never seen with what type of bot whatsoever)

Now i have some questions about the player.lua, i myself have an edited player.lua so it always picks up the dropped buffs by mobs, and a little better aggro detect/unsticking/no wait after loot script...

What i was wondering, is if since revision i dunno 470? (i've only been using SVN to update for about 3 days now(and i love it btw)) there has been allot of changed in player.lua (e.g the memory based targeting system) if that is in the player.lua, or maybe in the pawn.lua or another .lua file...

Because i have edited the player.lua part by part, its hard for me to find the lines where exactly i edited the script, and dont like editing the script for hours when maybe the player.lua file will be updated again in a few days ^^

is it possible to copy my outdated player.lua over the new one, without having big consequences for my targeting/botting?

My thanks in advance for your answer.

Sincerely,

RoM Botter
Hmmm, I don't think you can use an old player.lua without "any" consequences, what i do believe is you should add your mods to userfunctions.lua and then you never have this kind of problems...

Think about this: You added some conditions to check in CPlayer:fight() that are better for your gameplay, well instead of that do it this way: add the conditions to a function in userfunctions.lua and then, when player.lua is updated (in such a way that you can't auto merge the changes via SVN) the only thing you have to do is add those calls in the right place, like this:
In player.lua:

Code: Select all

if self.Battling and TheNameOfYourFunction() then ...
It is a bit more complicated but easier to mantain...
User avatar
Rom Botter
Posts: 85
Joined: Wed Jul 21, 2010 11:05 am
Location: Holland

Re: About player.lua

#4 Post by Rom Botter »

Thanks for the info, now i have another question...

It happens rarely, but it does happen, that the client crashes, is there any possible way to let the bot check for this, and or maybe click on the close button so my character wont die?
I think people need to be educated on the fact the marijuana is NOT a drug... marijuana is a plant and an herb, GOD put it here... if GOD put it here, what gives the GOVERNMENT the right to say GOD is WRONG??? ~ Willie Nelson
Post Reply