• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua kill boss world message

danalex07

New Member
Joined
Aug 29, 2010
Messages
14
Reaction score
2
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

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
 
Back
Top