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

Solved lms on death

gremlee

Qumora.com
Joined
Jul 15, 2008
Messages
511
Reaction score
16
Code:
function onPrepareDeath(cid, deathList)
    if isInRange(getPlayerPosition(cid), {x=869, y=977, z=7}, {x=888, y=994, z=7}) then -- rang of the lms map
        doCreatureAddHealth(cid, getCreatureMaxHealth(cid), 65535, 255, true)
        doCreatureAddMana(cid, getCreatureMaxMana(cid) - getCreatureMana(cid))
        doPlayerSetPzLocked(cid, false)
        doRemoveCondition(cid, CONDITION_INFIGHT)
        doTeleportThing(cid, {x = 1000, y = 1000, z = 7}) --temple
        end
        return false
    end
 
Last edited:
Back
Top