Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local teleportID = 1387
- local monsters = {
- ["Hellgorak"] = {pos = {x=33165, y=31726, z=11}, toPos = {x=33165, y=31726, z=11}, time = 180},
- ["Annihilon"] = {pos = {x=33165, y=31727, z=11}, toPos = {x=33164, y=31726, z=11}, time = 180},
- ["Madareth"] = {pos = {x=33165, y=31728, z=11}, toPos = {x=33163, y=31726, z=11}, time = 180},
- ["Ushuriel"] = {pos = {x=33165, y=31729, z=11}, toPos = {x=33162, y=31726, z=11}, time = 180},
- ["Zugurosh"] = {pos = {x=33165, y=31730, z=11}, toPos = {x=33161, y=31726, z=11}, time = 180}
- }
- function onDeath(cid)
- local tp = monsters[getCreatureName(cid)]
- if tp then
- doCreateTeleport(teleportID, tp.toPos, tp.pos)
- doCreatureSay(cid, "O teleport irรก sumir em "..tp.time.." segundos.", TALKTYPE_ORANGE_1)
- addEvent(removeTeleport, tp.time*1000, tp)
- end
- return TRUE
- end
- function removeTeleport(teleport)
- local t = getTileItemById(tp.pos, teleportID)
- if t then
- doRemoveItem(t.uid, 1)
- doSendMagicEffect(tp.pos, CONST_ME_POFF)
- end
- end
Add Comment
Please, Sign In to add comment