• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Morgaroth heart

palczes9

New Member
Joined
Oct 17, 2009
Messages
21
Reaction score
0
Hi, i use this script
Code:
function onDeath(cid, corpse, deathList)
local corpse_ids = {
[0] = 3065,
[1] = 3058
}
local v = { killer_name = getCreatureName(deathList[1]), killer_level = getPlayerLevel(deathList[1]), target_name = getCreatureName(cid), target_level = getPlayerLevel(cid) }
local reward = doAddContainerItem(corpse.uid, 5943, 1)
if isPlayer(cid) then
for i = 1, #deathList do
if(isPlayer(deathList)) then
doItemSetAttribute(reward, "description", "" .. (getPlayerSex(cid) == 0 and "She" or "He") .. " was killed at level " .. v.target_level .. " by " .. v.killer_name .. " who was level " .. v.killer_level .. " at the time. " .. (getCreatureSkullType(cid) <= SKULL_GREEN and "[Unjustified]" or "[Justified]"))
local corpse, killers = doCreateItem(corpse_ids[getPlayerSex(cid)], 1, getThingPos(cid)), ""
for i = 1, math.min(getConfigInfo('deathAssistCount') + 1, #deathList) do
killers = killers .. (i == 1 and "" or ", ") .. (isMonster(deathList) and "a " or "") .. getCreatureName(deathList)
end
end
doItemSetAttribute(reward, "name", v.target_name .."'s Heart")
end
end
return true
end

As a player is killed by a monster crashes such an error
iwasjqjrcqmiiasktenmkpgpbaceklaqsldpmbodnuuamlxmthngxossqkrjoehrqwpxwcxrpkypvgcqdplcytteskzckfoincjq

No description displays
iyxkagjvpyqvdpiuwprgjwluvrsdlhnaiaanqkkwckgrreooprlmhikmncojogkhlqmcpuemevezqucrcdotvasaqoanvbhwzyga

any ideas? I use trunk 3884
 
Back
Top