uDev
Illustrious Member
Is it possible with eluna to check when you kill npc if it dropped lets say item with id 1337 ?
Im trying to make something like this:
Im trying to make something like this:
Code:
local npcId = 123
local itemid = 1337
local function WhenDie(event, creature, killer)
if(killer:GetObjectType() == "Player") then
' here needs check if npc dropped item
creature:SendUnitSay("I have dropped this item!", 0)
end
end
RegisterCreatureEvent(npcId, 4, WhenDie)