Page 1 of 1

Check AUTO_ELITE_FACTOR; if true, then recall/logout

Posted: Wed Aug 04, 2010 7:27 am
by ou81too
Lately, there are mobs that have been bugged where the mobs have 2X-3X normal HP. To my undergeared character (with @ 2100HP), this bug makes these mobs almost elite. For example, the mob's normal HP is @ 4800HP; when bugged, the mobs have 9900HP.

The area I am farming have no elites. The check for AUTO_ELITE_FACTOR should never be true -- except when the mobs are bugged. When the mobs have 2X-3X normal HP, I want my character to recall/logout.

Is there a way to check before starting a fight if the check for AUTO_ELITE_FACTOR is true, and if true, then use recall then logout?

Re: Check AUTO_ELITE_FACTOR; if true, then recall/logout

Posted: Wed Aug 04, 2010 8:03 am
by swietlowka
I don't see a way to check if a mob is bugged... Are they anydiffrent by id or smt? I belive there no way to solve this.

Re: Check AUTO_ELITE_FACTOR; if true, then recall/logout

Posted: Wed Aug 04, 2010 8:21 am
by ou81too
swietlowka wrote:I don't see a way to check if a mob is bugged... Are they anydiffrent by id or smt? I belive there no way to solve this.
I'm not asking for a check to see if a mob is bugged. I'm asking how to check if AUTO_ELITE_FACTOR is true.

Re: Check AUTO_ELITE_FACTOR; if true, then recall/logout

Posted: Wed Aug 04, 2010 9:21 am
by swietlowka
there is no true value for AUTO_ELITE_FACTOR its a number like 4 and then its 4 times your life, i belive u could use sometnih like this, though i haven't tested it...

<onSkillCast>
if( arg1.Name == "YOUR HIGHEST PRIORITY SKILL HERE" ) then
if( "AUTO_ELITE_FACTOR" == 4) then
sendMacro("UseSkill(1,2)"); <-- Recall
player:logout();
end
end
</onSkillCast>

Be aware that recall function need some time to be cast, also i would make the bot run away not recall and logout at once...

EDIT: If someone more reliable would look into this it would be nice :)

Re: Check AUTO_ELITE_FACTOR; if true, then recall/logout

Posted: Fri Aug 06, 2010 7:37 am
by swietlowka
did that worked m8? cause it might be worth implementing in my script since those bugged creatures spawn randomly :P

Re: Check AUTO_ELITE_FACTOR; if true, then recall/logout

Posted: Fri Aug 06, 2010 10:48 am
by VoidMain
You don't need to do this, just adjust the value of AUTO_ELITE_FACTOR in your profile to a lower number, if it is 4 now, and you have 2100HP that means a mob should have more than 8400HP for it to be true ( 2100 x 4 ) and, if it is true, the bot will not attack it, with that being said, if you still want to do this because of aggro mobs you can do it like this:

Code: Select all

<onSkillCast><![CDATA[
local target = player:getTarget();
if( target.HP == target.MaxHP and target.MaxHP > player.MaxHP * settings.profile.options.AUTO_ELITE_FACTOR ) then
	player:logout();
end;
]]></onSkillCast>
Note that i'm not checking for any specific skill being casted, just checking that the target is full HP so it is the first attack.

Re: Check AUTO_ELITE_FACTOR; if true, then recall/logout

Posted: Sun Aug 08, 2010 5:17 am
by swietlowka
didnt know u can check for this in this section :D

Re: Check AUTO_ELITE_FACTOR; if true, then recall/logout

Posted: Wed Aug 11, 2010 6:44 pm
by ou81too
Thanks for the suggestions. I've been away from RoM recently. I thought with the new 3.0.3 patch that I would check these forums for RoM bot updates. I will try the recommended code:

Code: Select all

<onSkillCast><![CDATA[
local target = player:getTarget();
if( target.HP == target.MaxHP and target.MaxHP > player.MaxHP * settings.profile.options.AUTO_ELITE_FACTOR ) then
   player:logout();
end;
]]></onSkillCast>

Re: Check AUTO_ELITE_FACTOR; if true, then recall/logout

Posted: Mon Aug 23, 2010 6:26 am
by Valleyguy
Mostly using this thread as its relating to identification of Elites.

I found while trolling the forums on the US site someone else stumbled onto this info and I wanted to share it as you may want to alter the "Elite" and "Boss" code if indeed what this poster is saying is true....

Code: Select all

UnitSex("target")
You get numbers as result:

If you target a mob:
1 = normal
2 = elite
3 = boss

If you target a player:
1 = male
2 = female

I ran around and did some testing, I guess you could say I ran around sexing things (I think there's probably laws against that).

Not Friendly:
0 = normal
1 = ? (nothing that I could find)
2 = elite
3 = boss

Friendly:
0 = NPC / Male player
1 = Female player
2 = ?
3 = ?
4 = Crown NPC
Also note the above problem with the servers "hickups" and making normal mobs have lvl 50 stats has been reported as being squashed in recent patch.