Only loot certain mobs

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
starcraftfan87
Posts: 15
Joined: Mon Aug 31, 2009 3:03 pm

Only loot certain mobs

#1 Post by starcraftfan87 » 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.

d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

Re: Only loot certain mobs

#2 Post by d003232 » Wed Nov 04, 2009 6:45 am

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.
You could use the event 'onLeaveCombat'. Check the mobname and do a 'player:clearTarget();' if you don't want to loot them.

Code: Select all

local target = player:getTarget();
if( target.Name~="didadu") then
	player:clearTarget();
	...
The RoM Bot Online Wiki needs your help!

starcraftfan87
Posts: 15
Joined: Mon Aug 31, 2009 3:03 pm

Re: Only loot certain mobs

#3 Post by starcraftfan87 » Wed Nov 04, 2009 7:48 am

cool, thanks for the quick reply. Sorry but I'm a real noob at this where exactly would i put this code.

d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

Re: Only loot certain mobs

#4 Post by d003232 » Wed Nov 04, 2009 8:08 am

starcraftfan87 wrote:cool, thanks for the quick reply. Sorry but I'm a real noob at this where exactly would i put this code.
Into your profile

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!

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 53 guests