Only loot certain mobs
-
- Posts: 15
- Joined: Mon Aug 31, 2009 3:03 pm
Only loot certain mobs
I was just wondering if there was a code i could use in the profile xml to make it so the bot only loots certain mobs in a list.
Re: Only loot certain mobs
You could use the event 'onLeaveCombat'. Check the mobname and do a 'player:clearTarget();' if you don't want to loot them.starcraftfan87 wrote:I was just wondering if there was a code i could use in the profile xml to make it so the bot only loots certain mobs in a list.
Code: Select all
local target = player:getTarget();
if( target.Name~="didadu") then
player:clearTarget();
...
The RoM Bot Online Wiki needs your help!
-
- Posts: 15
- Joined: Mon Aug 31, 2009 3:03 pm
Re: Only loot certain mobs
cool, thanks for the quick reply. Sorry but I'm a real noob at this where exactly would i put this code.
Re: Only loot certain mobs
Into your profilestarcraftfan87 wrote:cool, thanks for the quick reply. Sorry but I'm a real noob at this where exactly would i put this code.
Code: Select all
<onLeaveCombat>
local target = player:getTarget();
if( target.Name ~= "didadu") then
player:clearTarget();
end
</onLeaveCombat>
The RoM Bot Online Wiki needs your help!
Who is online
Users browsing this forum: Ahrefs [Bot] and 53 guests