eu acho que você ja viu esse mais eu vou coloca e te ensina.
function onDeath(cid, corpse, killer)
registerCreatureEvent(cid, "inquisitionPortals")
local creaturename = getCreatureName(cid)
--- positions where the teleports will be created:
local hellgorak_in_pos = {x=1111, y=1219, z=5, stackpos=2} -- TP onde vai aparecer em tal lugar.
--- positions where the teleports will be teleported you:
local hellgorak_to_pos = {x=1178, y=1143, z=5, stackpos=1} -- TP onde vai levar o player pra tal lugar
local time_to_pass = 30 -- os seconds
local tpID = 1387
local doEffect = CONST_ME_TELEPORT
local message = "You now have 30 seconds to exit this room through the teleporter. It will bring you to the next room only during this time."
if creaturename == 'Hellgorak' then
teleport = doCreateTeleport(tpID, hellgorak_to_pos, hellgorak_in_pos)
doSendMagicEffect(ushuriel_in_pos, doEffect)
doCreatureSay(cid, message, TALKTYPE_ORANGE_1)
addEvent(removeTeleportInHellgorakWard, (1000*time_to_pass))
doCreatureSay(cid, message1, TALKTYPE_ORANGE_1)
end
end
function removeTeleportInHellgorakWard()
if getThingfromPos({x=1111, y=1219, z=5, stackpos=1}).itemid == 1387 then -- Onde o TP vai desaparecer
doRemoveItem(getThingfromPos({x=1111, y=1219, z=5, stackpos=1}).uid,1) -- Onde o TP vai desaparecer
doSendMagicEffect({x=1111, y=1219, z=5, stackpos=1}, CONST_ME_POFF) -- Onde o TP vai desaparecer
return TRUE
end
end
vai no xml. coloque.
<event type="death" name="inquisitionPortals" event="script" value="inquisitionPortals.lua"/>
agora vai em monsters, precure o xml do hellgorak e coloque em baixo de </flags> e coloque
<script><event name="inquisitionPortals"/>
</script>
espero que eu tenho te ajudado.
FEITO POR:






info
Grupo: Campones
Registrado: 18/01/09
Posts: 31
Reputação: +2
Dae galera to precisando de um script que quando mata um Hellgorak dai abre um tp e esse tp dura so 30 segungos, ja tem varios desse no forum mais nenhum funfa, PELO AMOR DE DEUS digam um QUE FUNCIONA POR FAVOR!
Editado Dezembro 19 por kakareco