i need some help with this script, what i want is, when a player kill a boss some world message appear with the name of creature and player who killed it...currently i have this
im not sure how to search in the table for the name to compare...and also if the code is correct..
ps: got no errors in console but doesnt work
Code:
local bosses = {"Demodras","The Horned Fox","Necropharus","The Old Window", "Morgaroth","Zulazza The Corruptor", "Ghazbaran", "Orshabaal","Ferumbras"}
function onKill(player, target)
if isInArray(bosses, target:getName()) then
Game.broadcastMessage("The player "..player:getName().." manage to kill "..target:getName().."!", MESSAGE_STATUS_WARNING)
end
return true
end
im not sure how to search in the table for the name to compare...and also if the code is correct..
ps: got no errors in console but doesnt work