• 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!

Need help with "This is the heart of Morgarth script"

Tazer

Banned User
Joined
Oct 25, 2009
Messages
181
Reaction score
1
Location
Sweden
I cant get it work some one that can help me with this? I have SVN 0.4 Newest.

Thanks, Tazer

Code:
    function onDeath(cid, corpse, lastHitKiller, mostDamageKiller)  
    local cidpos = getPlayerPosition(lastHitKiller)  
    loot = 5943  
    item = doPlayerAddItem(lastHitKiller,loot,1)  
    if(isPlayer(lastHitKiller) == TRUE) then  
        hitKillerName = getPlayerName(lastHitKiller)  
        doSetItemSpecialDescription(item,"This is the heart of "..getPlayerName(cid).." killed at Level "..getPlayerLevel(cid).." by "..hitKillerName..".") 
         doPlayerSendTextMessage(lastHitKiller, MESSAGE_STATUS_CONSOLE_ORANGE, "You Killed " .. getCreatureName(cid) .. ".") 
         doSendMagicEffect(cidpos,12)  
    else  
        hitKillerName = getCreatureName(lastHitKiller)  
        doSetItemSpecialDescription(item,"This is the heart of "..getPlayerName(cid).." killed at Level "..getPlayerLevel(cid).." by a "..hitKillerName..".") 
     end  
    setItemName(item, ""..getPlayerName(cid).."\'s Heart")  
    return TRUE  
end
 
I cant get it work some one that can help me with this? I have SVN 0.4 Newest.

Thanks, Tazer

Code:
    function onDeath(cid, corpse, lastHitKiller, mostDamageKiller)  
    local cidpos = getPlayerPosition(lastHitKiller)  
    loot = 5943  
    item = doPlayerAddItem(lastHitKiller,loot,1)  
    if(isPlayer(lastHitKiller) == TRUE) then  
        hitKillerName = getPlayerName(lastHitKiller)  
        doSetItemSpecialDescription(item,"This is the heart of "..getPlayerName(cid).." killed at Level "..getPlayerLevel(cid).." by "..hitKillerName..".") 
         doPlayerSendTextMessage(lastHitKiller, MESSAGE_STATUS_CONSOLE_ORANGE, "You Killed " .. getCreatureName(cid) .. ".") 
         doSendMagicEffect(cidpos,12)  
    else  
        hitKillerName = getCreatureName(lastHitKiller)  
        doSetItemSpecialDescription(item,"This is the heart of "..getPlayerName(cid).." killed at Level "..getPlayerLevel(cid).." by a "..hitKillerName..".") 
     end  
    setItemName(item, ""..getPlayerName(cid).."\'s Heart")  
    return TRUE  
end

What's the error and have you registered the event in login.lua?
 
Back
Top