Quantcast
Channel: OTLand
Viewing all articles
Browse latest Browse all 32031

[Creaturescripts] Player don't actually die in the area.

$
0
0
Hi guys, i'm having a problem with a script i'm using.
Lua:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
    local from, to =  {x = 1051, y = 592, z = 7},{x = 1056, y = 596, z = 7}
    local pos = {x = 543, y = 525, z = 7}
        if isPlayer(cid) and isInRange(getCreaturePosition(cid), from, to) then
            doTeleportThing(cid, pos)
            doCreatureAddHealth(cid, getCreatureMaxHealth(cid), 65535, 256, true)
            doRemoveConditions(cid, false)...
[Creaturescripts] Player don't actually die in the area.

Viewing all articles
Browse latest Browse all 32031

Trending Articles