basta adicionar return true no function onDeath, antes do último end dessa função, aqui:
function onDeath(cid, corpse, killer)
registerCreatureEvent(cid, "inquisitionPortals")
local creaturename = getCreatureName(cid)
local ushuriel_in_position = {x=342, y=765, z=12, stackpos=2}
local ushuriel_to_position = {x=268, y=973, z=13, stackpos=1}
local time_to_pass = 180
local tpID = 5023
local doEffect = CONST_ME_ENERGYHIT
local message = "You now have 3 minutes to exit this room through the teleporter. It will bring you to the next room only during his time or the teleporter will disappear."
if creaturename == 'Ushuriel' then
teleport = doCreateTeleport(tpID, ushuriel_to_position, ushuriel_in_position)
doSendMagicEffect(ushuriel_in_position, CONST_ME_ENERGYHIT)
doCreatureSay(cid, message, TALKTYPE_ORANGE_1)
addEvent(removeTeleportInUshurielWard, (1000*time_to_pass))
end
return true
end
function removeTeleportInUshurielWard()
if getThingfromPos({x=342, y=765, z=12, stackpos=1}).itemid == 5023 then
doRemoveItem(getThingfromPos({x=342, y=765, z=12, stackpos=1}).uid,1)
doSendMagicEffect({x=342, y=765, z=12, stackpos=1}, CONST_ME_POFF)
return TRUE
end
end








info
Grupo: Artesão
Registrado: 02/03/07
Posts: 119
Reputação: +1
Gênero: Masculino
Fala galera, tô com um probleminha aqui nos bosses da inquisition.. Quando eu mato ele, ele desaparece, o teleport aparece normalmente e me leva para sala seguinte, depois de 3 minutos, o teleport some, ou seja, não tem nenhum erro, só que tipo, eu queria que o bixo não desaparecesse, pros players conseguirem pegar o loot dele. Vou postar o script.
Em creaturescripts.xml tá assim:
Em creaturescripts\scripts\teleports_inquisition.lua tá assim:
function onDeath(cid, corpse, killer) registerCreatureEvent(cid, "inquisitionPortals") local creaturename = getCreatureName(cid) local ushuriel_in_position = {x=342, y=765, z=12, stackpos=2} local ushuriel_to_position = {x=268, y=973, z=13, stackpos=1} local time_to_pass = 180 local tpID = 5023 local doEffect = CONST_ME_ENERGYHIT local message = "You now have 3 minutes to exit this room through the teleporter. It will bring you to the next room only during his time or the teleporter will disappear." if creaturename == 'Ushuriel' then teleport = doCreateTeleport(tpID, ushuriel_to_position, ushuriel_in_position) doSendMagicEffect(ushuriel_in_position, CONST_ME_ENERGYHIT) doCreatureSay(cid, message, TALKTYPE_ORANGE_1) addEvent(removeTeleportInUshurielWard, (1000*time_to_pass)) end end function removeTeleportInUshurielWard() if getThingfromPos({x=342, y=765, z=12, stackpos=1}).itemid == 5023 then doRemoveItem(getThingfromPos({x=342, y=765, z=12, stackpos=1}).uid,1) doSendMagicEffect({x=342, y=765, z=12, stackpos=1}, CONST_ME_POFF) return TRUE end endEm creaturescripts\scripts\login.lua adicionei isso:
No meu bixo, no caso o Ushuriel, adicionei isso:
Quem ajudar, REP+
Editado Outubro 19 por coriel