CO

Problema Inquisition Boss (Golgordan E Latrivan)

Por coriel, 19 de out. de 2012 em Scripts

dúvida
resolvido
script
30
3.3k
Session StartS
19 de outubro de 2012 às 19:47

Tenta me deu uma ideia aqui.. nao sei se vai funcionar...

 

MANO O NOME DO GolgordaN TAVA ERRADO :@

 

 

 

 

function onDeath(cid, corpse, killer)

 

registerCreatureEvent(cid, "inquisitionPortalsquatro")

 

local creaturename = getCreatureName(cid)

 

local brothers_in_position = {x=661, y=759, z=13, stackpos=1}

 

local brothers_to_position = {x=504, y=827, 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 == 'Latrivan' or creaturename == 'Golgordan' then

if creaturename == 'Golgordan' or creaturename == 'Latrivan' then

teleport = doCreateTeleport(tpID, brothers_to_position, brothers_in_position)

 

doSendMagicEffect(brothers_in_position, CONST_ME_ENERGYHIT)

 

doCreatureSay(cid, message, TALKTYPE_ORANGE_1)

 

addEvent(removeTeleportInBrothersWard, (1000*time_to_pass))

 

end

end

return true

end

 

function removeTeleportInBrothersWard()

if getThingfromPos({x=661, y=759, z=13, stackpos=1}).itemid == 5023 then

doRemoveItem(getThingfromPos({x=661, y=759, z=13, stackpos=1}).uid,1)

doSendMagicEffect({x=661, y=759, z=13, stackpos=1}, CONST_ME_POFF)

return TRUE

end

end

Editado Outubro 19 por Cleberadm

corielC
19 de outubro de 2012 às 19:50

Agora se matar o Latrivan, o teleport é criado sem matar o Golgordan. E se matar o Golgordan, o tp não é criado.

Session StartS
19 de outubro de 2012 às 19:52

Usa esse meu 1° com o nome corrigido...

 

 

 

function onDeath(cid, corpse, killer)

 

registerCreatureEvent(cid, "inquisitionPortalsquatro")

 

local creaturename = getCreatureName(cid)

 

local brothers_in_position = {x=661, y=759, z=13, stackpos=1}

 

local brothers_to_position = {x=504, y=827, 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 == 'Latrivan' and 'Golgordan' then

 

teleport = doCreateTeleport(tpID, brothers_to_position, brothers_in_position)

 

doSendMagicEffect(brothers_in_position, CONST_ME_ENERGYHIT)

 

doCreatureSay(cid, message, TALKTYPE_ORANGE_1)

 

addEvent(removeTeleportInBrothersWard, (1000*time_to_pass))

 

end

return true

end

 

function removeTeleportInBrothersWard()

if getThingfromPos({x=661, y=759, z=13, stackpos=1}).itemid == 5023 then

doRemoveItem(getThingfromPos({x=661, y=759, z=13, stackpos=1}).uid,1)

doSendMagicEffect({x=661, y=759, z=13, stackpos=1}, CONST_ME_POFF)

return TRUE

end

end

corielC
19 de outubro de 2012 às 19:52

Realmente tava errado, arrumei e agora se matar um dos dois, o tp cria. Matou o Latrivan o tp é criado, matou o Golgordan o tp também é criado. No caso era pra matar os dois e o tp ser criado.

 

 

EDIT: Mesmo erro de antes, mato o Latrivan o TP cria, mato o Golgordan, não acontece nada.

Editado Outubro 19 por coriel

Session StartS
19 de outubro de 2012 às 19:55

Usou este ultimo?

 

 

 

function onDeath(cid, corpse, killer)

 

registerCreatureEvent(cid, "inquisitionPortalsquatro")

 

local creaturename = getCreatureName(cid)

 

local brothers_in_position = {x=661, y=759, z=13, stackpos=1}

 

local brothers_to_position = {x=504, y=827, 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 == 'Latrivan' and 'Golgordan' then

 

teleport = doCreateTeleport(tpID, brothers_to_position, brothers_in_position)

 

doSendMagicEffect(brothers_in_position, CONST_ME_ENERGYHIT)

 

doCreatureSay(cid, message, TALKTYPE_ORANGE_1)

 

addEvent(removeTeleportInBrothersWard, (1000*time_to_pass))

 

end

return true

end

 

function removeTeleportInBrothersWard()

if getThingfromPos({x=661, y=759, z=13, stackpos=1}).itemid == 5023 then

doRemoveItem(getThingfromPos({x=661, y=759, z=13, stackpos=1}).uid,1)

doSendMagicEffect({x=661, y=759, z=13, stackpos=1}, CONST_ME_POFF)

return TRUE

end

end

corielC
19 de outubro de 2012 às 19:59

sim..

 

EDIT: Tô pra desistir cara, ahuahuahu

Editado Outubro 19 por coriel

Session StartS
19 de outubro de 2012 às 20:00

Tipo, os 2 estão juntos ? QUAL PRECISA MATAR 1°? ai vou tentar fazer uma coisa aqui...

corielC
19 de outubro de 2012 às 20:03

Sim, tipo cara.. Tem uma sala da inquisition que os dois bosses no caso o Latrivan e o Golgordan estão juntos, entende? Ou seja, para passar de sala, tenho que matar os dois e o teleport tem que ser criado para logicamente passar de sala. Não tem que matar um ou o outro primeiro, tem que matar os dois! Se matar um, tem que matar o outro pro teleport ser criado.

Session StartS
19 de outubro de 2012 às 20:13

ó tenta ai, e responde por PM vamo para de falar aqui 1 pouco e.e, mto flood e,e

 

 

 

 

 

function onDeath(cid, corpse, killer)

 

registerCreatureEvent(cid, "inquisitionPortalsquatro")

 

local creaturename = getCreatureName(cid)

 

local brothers_in_position = {x=661, y=759, z=13, stackpos=1}

 

local brothers_to_position = {x=504, y=827, 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 =='Latrivan')and(creaturename =='Golgordan') then

setPlayerStorageValue(cid, 32001, 1)

teleport = doCreateTeleport(tpID, brothers_to_position, brothers_in_position)

 

doSendMagicEffect(brothers_in_position, CONST_ME_ENERGYHIT)

 

doCreatureSay(cid, message, TALKTYPE_ORANGE_1)

 

addEvent(removeTeleportInBrothersWard, (1000*time_to_pass))

 

 

return true

end

 

function removeTeleportInBrothersWard()

if getThingfromPos({x=661, y=759, z=13, stackpos=1}).itemid == 5023 then

doRemoveItem(getThingfromPos({x=661, y=759, z=13, stackpos=1}).uid,1)

doSendMagicEffect({x=661, y=759, z=13, stackpos=1}, CONST_ME_POFF)

 

return true

end

end

end

 

 

Editado Outubro 19 por Cleberadm

corielC
19 de outubro de 2012 às 20:20

Ah mano, nem posso ser acusado de flood.. kkkkkkkkkkkkkk! Tenho minha conta deis de 2007 e só tenho 45 posts, kkkkkkkkkkkkkkkk! Vou ver se deu certo!!

 

 

 

EDIT: Agora se eu matar qualquer um dos dois, eles desaparecem, não da pra pegar loot e nem o tp é criado.

Editado Outubro 19 por coriel

Session StartS
19 de outubro de 2012 às 20:35

acho que foi os END no fim que coloquei errado e.e

 

 

 

function onDeath(cid, corpse, killer)

 

registerCreatureEvent(cid, "inquisitionPortalsquatro")

 

local creaturename = getCreatureName(cid)

 

local brothers_in_position = {x=661, y=759, z=13, stackpos=1}

 

local brothers_to_position = {x=504, y=827, 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 =='Latrivan')and(creaturename =='Golgordan') then

setPlayerStorageValue(cid, 32001, 1)

teleport = doCreateTeleport(tpID, brothers_to_position, brothers_in_position)

 

doSendMagicEffect(brothers_in_position, CONST_ME_ENERGYHIT)

 

doCreatureSay(cid, message, TALKTYPE_ORANGE_1)

 

addEvent(removeTeleportInBrothersWard, (1000*time_to_pass))

 

 

return true

end

 

function removeTeleportInBrothersWard()

if getThingfromPos({x=661, y=759, z=13, stackpos=1}).itemid == 5023 then

doRemoveItem(getThingfromPos({x=661, y=759, z=13, stackpos=1}).uid,1)

doSendMagicEffect({x=661, y=759, z=13, stackpos=1}, CONST_ME_POFF)

end

end

return true

end

 

 

 

corielC
19 de outubro de 2012 às 22:32

Da pra matar os dois e catar o loot, mas nenhum tp é criado..

 

 

EDIT: Tem alguém que pode me ajudar? Valendo REP+

Editado Outubro 19 por coriel

SlicerS
19 de outubro de 2012 às 23:51

function onDeath(cid, killer)
local tp = {x = 602, y = 759, z = 13} -- Posição do Teleport
local tpgo = {x = 504, y = 827, z = 13} -- Posição em que o teleport levará
local tempo = 180 -- Tempo em que o Teleport ficará aberto em segundos
local tpid = 1387 -- ID do teleport
local stor = 18291
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 getGlobalStorageValue(stor) == -1 then
setGlobalStorageValue(stor, getGlobalStorageValue(stor)+1)
elseif getGlobalStorageValue(stor) == 0 then
doCreatureSay(cid, message, TALKTYPE_ORANGE_1)
doCreateTeleport(tpid, tpgo, tp)
setGlobalStorageValue(stor, -1)
addEvent(removeTp, tempo*1000, tp, tpid)
end
return true
end

function removeTp(tp, tpid)
local t = getTileItemById(tp, tpid)
if t.uid >= 1 then
doRemoveItem(t.uid, 1)
doSendMagicEffect(tp, CONST_ME_POFF)
end
end

 

ta ae ^^

corielC
19 de outubro de 2012 às 23:52

Você é foda mlk! Perfeito!!!

 

EDIT: Dúvida respondida, podem mover o tópico.

Editado Outubro 19 por coriel

SkymagnumS
20 de outubro de 2012 às 00:02

Tópico movido para a seção de dúvidas e pedidos resolvidos.