Ir para conteúdo
  • 0

Problemas na WOTE Quest.


GustavaoTibia

Pergunta

Gente eu to procurando resolver um problema na WOTE quest.


O boss é sumonado normal quando da USE no item e joga em cima do outro item no MAPA.


O problema é que se o player sair ou morrer o boss continua vivo e ninguem pode entrar até que ele seja morto, só que claro que não tem como matar porque ninguem entra na sala, eu queria arrumar para depois de um tempo liberar a sala e o boss ser removido para poder o outro player que entrar sumonar novamente e tentar matar se caso ele sair ou morrer depois do tempo "x" a sala é liberada e o boss é removido.



O script atual é e o que libera ou bloqueia a sala é "setGlobalStorageValue"


Poderia colocar o TP normal, mais dai os players que morrer e tentar novamente vai ficar chamando muitos bosses caso ele nao seja removido.



local boss = {
[3193] = "fury of the emperor",
[3194] = "wrath of the emperor",
[3195] = "scorn of the emperor",
[3196] = "spite of the emperor",
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
if(item.itemid == 12318 and boss[itemEx.uid] and itemEx.itemid == 12383) then
doTransformItem(itemEx.uid, 11753)
doSummonCreature(boss[itemEx.uid], {x = toPosition.x + 4, y = toPosition.y, z = toPosition.z})
setGlobalStorageValue(itemEx.uid - 4, 1)
elseif(item.itemid == 12318 and itemEx.itemid == 12317) then
if(toPosition.x > 33034 and toPosition.x < 33071 and
toPosition.y > 31079 and toPosition.y < 31102) then
if(getPlayerStorageValue(cid, 1090) == 1) then
setPlayerStorageValue(cid, 1090, 2)
doCreatureSay(cid, "The sceptre is almost torn from your hand as you banish the presence of the emperor.", TALKTYPE_ORANGE_1)
doTeleportThing(cid, {x = 33052, y = 31085, z = 14})
doSendMagicEffect({x = 33052, y = 31085, z = 14}, CONST_ME_TELEPORT)
end
elseif(toPosition.x > 33080 and toPosition.x < 33111 and
toPosition.y > 31079 and toPosition.y < 31100) then
if(getPlayerStorageValue(cid, 1090) == 2) then
setPlayerStorageValue(cid, 1090, 3)
doCreatureSay(cid, "The sceptre is almost torn from your hand as you banish the presence of the emperor.", TALKTYPE_ORANGE_1)
doTeleportThing(cid, {x = 33098, y = 31085, z = 14})
doSendMagicEffect({x = 33098, y = 31085, z = 14}, CONST_ME_TELEPORT)
end
elseif(toPosition.x > 33078 and toPosition.x < 33112 and
toPosition.y > 31106 and toPosition.y < 31127) then
if(getPlayerStorageValue(cid, 1090) == 3) then
setPlayerStorageValue(cid, 1090, 4)
doCreatureSay(cid, "The sceptre is almost torn from your hand as you banish the presence of the emperor.", TALKTYPE_ORANGE_1)
doTeleportThing(cid, {x = 33100, y = 31116, z = 14})
doSendMagicEffect({x = 33100, y = 31116, z = 14}, CONST_ME_TELEPORT)
end
elseif(toPosition.x > 33035 and toPosition.x < 33069 and
toPosition.y > 31107 and toPosition.y < 31127) then
if(getPlayerStorageValue(cid, 1090) == 4) then
setPlayerStorageValue(cid, 1090, 5)
doCreatureSay(cid, "The sceptre is almost torn from your hand as you banish the presence of the emperor.", TALKTYPE_ORANGE_1)
doTeleportThing(cid, {x = 33066, y = 31151, z = 15})
doSendMagicEffect({x = 33066, y = 31151, z = 15}, CONST_ME_TELEPORT)
end
end
elseif(item.itemid == 12318 and itemEx.itemid == 12385) then
if(getPlayerStorageValue(cid, 1090) == 5) then
doCreatureSay(cid, "NOOOoooooooo...!", TALKTYPE_ORANGE_1, false, cid, toPosition)
doCreatureSay(cid, "This should have dealt the deathblow to the snake things' ambitions.", TALKTYPE_ORANGE_1)
setPlayerStorageValue(cid, 1090, 6)
end
end
return true
end

Link para o comentário
Compartilhar em outros sites

1 resposta a esta questão

Posts Recomendados

×
×
  • Criar Novo...