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

I need a few creaturescripts please

Lakkir

Active Member
Joined
Jan 6, 2009
Messages
29
Reaction score
25
Location
Chile
I need a function that makes a player is teleported to the temple when he die without logout. And count frag and give a item to the killer.
I made one but doesn't add frags because the player never dies:

Code:
function onPrepareDeath(cid, deathList)
if isPlayer(cid) == true then
doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)), true)
doCreatureAddHealth(cid, (getCreatureMaxHealth(cid) - getCreatureHealth(cid)),1, 255, true)
doCreatureAddMana(cid, (getCreatureMaxMana(cid) - getCreatureMana(cid)))
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA)
doRemoveConditions(cid)
return false
end
return true
end

Thanks
 
Back
Top