That's the plan. Unless there is some other problem prohibiting it from working correctly, that is what should happen.Abisbowa wrote: If I take out the "pauseOnDeath();" method call will it press the rez macro when the bot dies?
RoM bot
- Administrator
- Site Admin
- Posts: 5307
- Joined: Sat Jan 05, 2008 4:21 pm
Re: RoM bot
Re: RoM bot
can you add rogue's elite skill quickness aura to the database?
-
- Posts: 104
- Joined: Mon Jan 05, 2009 8:19 am
Re: RoM bot
It's in there:phattrent wrote:can you add rogue's elite skill quickness aura to the database?
Code: Select all
<skill name="ROGUE_QUICKNESS_AURA" mana="27" manainc="3" type="buff" cooldown="600" target="self" />
Help on Timer pls.
atm i try to add a Imunity function all works fine but there is something wrong with my timer what i did is:
bot.lua line ~ 291
player.lua line ~ 71
and i add in pawn.lua line ~ 64
the bot use the imunity but seems more Random then exactly when HP is down or the Timer is up, what did i wrong ?
i never saw yet this msg : cprintf(cli.red, "Imunity in Cooldown\n"); this should show up when the Imunity is on cooldown.
bot.lua line ~ 291
Code: Select all
if( player.TargetPtr == 0 ) then
player:checkPotions();
if( settings.profile.options.IMUNITY_USE == true ) then
player:checkImunity();
end
player:checkSkills();
end
player.lua line ~ 71
Code: Select all
-- Check if you need to use Imunity, and use them.
function CPlayer:checkImunity()
-- Still cooling down, don't use.
if( os.difftime(os.time(), self.ImunityLastUseTime) < settings.profile.options.IMUNITY_COOLDOWN ) then
cprintf(cli.red, "Imunity in Cooldown\n");
return;
end
if( (self.HP/self.MaxHP*100) < settings.profile.options.HP_LOW_USE_IMUNITY ) then
cprintf(cli.red, "Use Imunity\n");
local modifier = settings.profile.hotkeys.HP_LOW_IMUNITY.modifier
if( modifier ) then keyboardHold(modifier); end
keyboardPress(settings.profile.hotkeys.HP_LOW_IMUNITY.key);
if( modifier ) then keyboardRelease(modifier); end
yrest(1000);
end
end
and i add in pawn.lua line ~ 64
Code: Select all
self.ImunityLastUseTime = 0;
i never saw yet this msg : cprintf(cli.red, "Imunity in Cooldown\n"); this should show up when the Imunity is on cooldown.
Re: Help on Timer pls.
If 'self.ImunityLastUseTime' = 0, then the of.difftime will be allways much greater then the cooldown. And I dont see a place where you set 'self.ImunityLastUseTime'? Mean you will never be on cooldown.kumpel100 wrote: if( os.difftime(os.time(), self.ImunityLastUseTime) < settings.profile.options.IMUNITY_COOLDOWN ) then
The RoM Bot Online Wiki needs your help!
Re: RoM bot
also when i cast my imunity first time i should add something like:
self.ImunityLastUseTime = os.time();
right?
P.s Problem Solved thx
self.ImunityLastUseTime = os.time();
right?
P.s Problem Solved thx
- Administrator
- Site Admin
- Posts: 5307
- Joined: Sat Jan 05, 2008 4:21 pm
Re: RoM bot
Should be greater than (>). os.difftime() returns the time, in seconds, that have elapsed since ImunityLastUseTime. Also, 'immunity' has two Ms.if( os.difftime(os.time(), self.ImunityLastUseTime) < settings.profile.options.IMUNITY_COOLDOWN )
Re: RoM bot
Here`s a situation I have two bots in a party: first(Rouge-Mage) and second(Knight-Priest). Second bot must follow first. They always must attack the same mob(the one that first targeting on) but when mob attack one of the bots they must react at once and kill it.Second must use regenerate on both bots when hp lvl 60%! Just don`t know how to do it if you tell me how i can script some parts of my request i`ll be very happy
- Administrator
- Site Admin
- Posts: 5307
- Joined: Sat Jan 05, 2008 4:21 pm
Re: RoM bot
Your secondary character would probably be better off using an addon to assist the main. I know there are a few addons floating around to do exactly this, but I can't find any on curse.com at the moment.
Re: RoM bot
and what about if mob will attack second the first must kill the mob which attacking second first and then kill other mobs?
- Administrator
- Site Admin
- Posts: 5307
- Joined: Sat Jan 05, 2008 4:21 pm
Re: RoM bot
Use assist macros. Or press F2 to target teammate, and press F to assist.
Re: RoM bot
Sorry if this has already been asked/answered, but due to the size of the thread i can't take heart to read it all before asking =)
Does this bot support harversting, or there are any plans for it to do it? Thanks in advance!
Does this bot support harversting, or there are any plans for it to do it? Thanks in advance!
-
- Posts: 104
- Joined: Mon Jan 05, 2009 8:19 am
Re: RoM bot
Read the very first post of this thread ... no offence.Zinc wrote:Sorry if this has already been asked/answered, but due to the size of the thread i can't take heart to read it all before asking =)
Does this bot support harversting, or there are any plans for it to do it? Thanks in advance!
Zilvermoon
Re: RoM bot
Hey guys. The harvesting option is looking great I have one question about harvestin'. Is it possible to run and collect the mat's and only if mob attack me my char killing him and going back to collecting?
Thanks!
Thanks!
Re: RoM bot
Possible soulutions see http://www.solarstrike.net/phpBB3/viewt ... f=21&t=370Czachaaa wrote:Is it possible to run and collect the mat's and only if mob attack me my char killing him and going back to collecting?
The RoM Bot Online Wiki needs your help!
Re: RoM bot
All right! It's working Thanks so much! ;Dd003232 wrote:Possible soulutions see http://www.solarstrike.net/phpBB3/viewt ... f=21&t=370Czachaaa wrote:Is it possible to run and collect the mat's and only if mob attack me my char killing him and going back to collecting?
U guys rox!
Re: RoM bot
Hi! I just don`t understand what i have to do to harvest! I`m using 2.40 bot version i`ve set up a number of waypoints rught next to resources and i added player:harvest(); after each waypoint line it goes like this
<waypoints>
<!-- # 1 --><waypoint x="-365" z="-6676"></waypoint>
player:harvest();
<!-- # 2 --><waypoint x="-588" z="-6868"></waypoint>
player:harvest();
<!-- # 3 --><waypoint x="-355" z="-7153"></waypoint>
player:harvest();
</waypoints>
and still it`s not harvesting just moving to this points! Help me plz thank you
<waypoints>
<!-- # 1 --><waypoint x="-365" z="-6676"></waypoint>
player:harvest();
<!-- # 2 --><waypoint x="-588" z="-6868"></waypoint>
player:harvest();
<!-- # 3 --><waypoint x="-355" z="-7153"></waypoint>
player:harvest();
</waypoints>
and still it`s not harvesting just moving to this points! Help me plz thank you
Re: RoM bot
It should look like:kolobok wrote: and still it`s not harvesting just moving to this points! Help me plz thank you
Code: Select all
<waypoints>
<!-- # 1 --><waypoint x="3414" z="6516"></waypoint>
<!-- # 2 --><waypoint x="3500" z="6477"></waypoint>
<!-- # 3 --><waypoint x="3679" z="6536">player:harvest();</waypoint>
</waypoints>
The RoM Bot Online Wiki needs your help!
Re: RoM bot
THANK YOU VERY MUCH IT`S JUST THE BEST
Re: RoM bot
I wish to increase radius of a search with the mouse for resources. I mean that if I was mistaken also a boat there is sideways from a resource it does not find it with a mouse I need a small displacement of the mouse to the left or to the right a little. Is it possible to increase radius of cursor search for resources. Sorry for bad english
Who is online
Users browsing this forum: Bing [Bot] and 3 guests