hi guys
i'm wondering if someone can do this script:
when I kill Koshei The Deathless, i need the player gets teleported to:
coords x, y, z...
I have one script here, but it teleport the dead corpse of monster, instead of the player
look my script:
How to fix it?
thx
rep++
i'm wondering if someone can do this script:
when I kill Koshei The Deathless, i need the player gets teleported to:
coords x, y, z...
I have one script here, but it teleport the dead corpse of monster, instead of the player
look my script:
Code:
local t = {
teleportTo = {x=33264,y=32446,z=12},
monsterName = 'koshei the deathless'
}
function onKill(cid, target, flags)
if getCreatureName(target):lower() == t.monsterName:lower() then
doSendMagicEffect(getThingPos(cid), CONST_ME_TELEPORT)
doTeleportThing(cid, t.teleportTo)
doSendMagicEffect(t.teleportTo, CONST_ME_TELEPORT)
end
return true
end
How to fix it?
thx
rep++