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

AOL not working in TFS 0.3.6pl1 (Crying Damson)

Joined
Aug 21, 2007
Messages
1,067
Reaction score
22
Location
Mexico
I've tried to fix the amulet of loss it in the playerdeath.lua, and guess what? There is NO playerdeath.lua in this distro. So, what should I do?

Help please! Rep+

P.S. It prevents items from dropping, but the amulet doesn't disappear.
 
Lua:
function onPrepareDeath(cid, deathList)
 if isPlayer(cid) then
 local config = {
  local name = getPlayerName(cid)
  local killer = getPlayerKiller(cid)
}
  if getPlayerSlotItem(cid, 2).itemid == 2404 then
 doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, getPlayerExperience(cid))
  doRemoveConditions(cid, FALSE)
   doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLY)
 doPlayerPopupFYI(cid, "You are dead, Youre (aol) will be removed!")
     doBroadCastMessage(cid, ..name.. Did just die by ..killer..)
   return FALSE
  end
 end
 return TRUE
end
 
Back
Top