Only loot certain mobs
Posted: Wed Nov 04, 2009 6:40 am
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.
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();
...
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>