Page 1 of 1

About player.lua

Posted: Wed Jul 21, 2010 11:22 am
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

Re: About player.lua

Posted: Wed Jul 21, 2010 1:36 pm
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).

Re: About player.lua

Posted: Wed Jul 21, 2010 1:53 pm
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...

Re: About player.lua

Posted: Thu Jul 22, 2010 9:20 am
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?