View Full Version : Is possible Npc add mark on player ?

04-06-2014, 08:34 PM
I got quick question, didn't find it anywhere.

Is it possible to Npc / Boss add mark on random player ? like cross / ... or what ever ? And if is then how ?

04-06-2014, 10:33 PM
Since players can add marks on each other, it should be possible to atleast simulate a player adding the mark. You could always just use something Hunter's Mark or w/e it is called. There are tons of visual spells which could possibly replicate using a mark. I would start by finding the functionality for when a player adds a mark, then try to replicate that.

Simple answer: No there is no such method in Eluna currently.

04-06-2014, 11:14 PM
It can probably be done through packets

04-06-2014, 11:55 PM
There is no way atm to do it so that the core will take it in as if you would have set it as a player. (no method for it.. read on)
But you can send a packet.

WorldPacket data(MSG_RAID_TARGET_UPDATE, (1+8+1+8));
data << uint8(0); // set targets
data << uint64(whoGuid);
data << uint8(id);
data << uint64(targetGuid);
BroadcastPacket(&data, true);

So for Eluna that would be:

local data = CreatePacket(801, (1+8+1+8))
data:WriteGUID(player:GetGUID()); -- probably not required
data:WriteUByte(0); -- 0-7
data:WriteGUID(target:GetGUID()); -- use 0 to clear the target for the icon

Ill add a method for group.
But if you are looking for a single character or want to use the icons around how you want, use packets.
ps like always, update eluna