Postado Novembro 12, 2012 12 anos Galera, assim, eu to com um bug na Demon Oak que eu copiei para o meu Ot, o que me ocorre é assim quando o player usa o Hallowed axe na tree pra entrar na Demon Oak a arvore some e não volta, já pesquisei o que poderia ser mas não obtive resultado por isso vim aqui para pedir a alguma alma caridosa para que me ajude, o Script que eu uso é esse: function onUse(cid, item, fromPosition, itemEx, toPosition) treepos = {x=545, y=1124, z=7, stackpos=1} monster1 = {x=543, y=1128, z=7} monster2 = {x=549, y=1129, z=7} monster3 = {x=549, y=1135, z=7} monster4 = {x=541, y=1135, z=7} tree = getThingfromPos(treepos).uid playerPos = getCreaturePosition(cid) local randomizer = math.random(1,6) queststatus = getPlayerStorageValue(cid,8181) queststatus2 = getPlayerStorageValue(cid,8282) queststatus3 = getPlayerStorageValue(cid,8383) queststatus4 = getPlayerStorageValue(cid,8484) Level = getPlayerLevel(cid) if itemEx.itemid == 2709 and itemEx.actionid == 7787 and Level >= 170 then doRemoveItem(tree) doTeleportThing(cid, toPosition, TRUE) setPlayerStorageValue(cid,8181,1) else doSendMagicEffect(toPosition, CONST_ME_POFF) doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "Only level 170+.") end if itemEx.itemid == 2709 and itemEx.actionid == 7788 then doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "A player is already doing this quest.") end if itemEx.itemid == 8289 and itemEx.actionid == 8181 and (randomizer == 1) and queststatus == 1 then doSummonCreature("Crypt Shambler", monster1) doSummonCreature("Crypt Shambler", monster2) doSummonCreature("Crypt Shambler", monster3) doSummonCreature("Crypt Shambler", monster4) elseif itemEx.itemid == 8289 and itemEx.actionid == 8181 and (randomizer == 2) and queststatus == 1 then doSummonCreature("Bone Beast", monster1) doSummonCreature("Bone Beast", monster2) doSummonCreature("Bone Beast", monster3) doSummonCreature("Bone Beast", monster4) elseif itemEx.itemid == 8289 and itemEx.actionid == 8181 and (randomizer == 3) and queststatus == 1 then doSummonCreature("Orshabaal", monster1) setPlayerStorageValue(cid,8181,-1) setPlayerStorageValue(cid,8282,1) elseif itemEx.itemid == 8289 and itemEx.actionid == 8181 and (randomizer >= 4) and queststatus == 1 then doSendMagicEffect(playerPos, 45) doCreatureAddHealth(cid, -1000) doSendAnimatedText(playerPos, '1000', TEXTCOLOR_LIGHTGREEN) end if itemEx.itemid == 8289 and itemEx.actionid == 8181 and queststatus == -1 then doSendMagicEffect(toPosition, CONST_ME_POFF) end if itemEx.itemid == 8288 and itemEx.actionid == 8282 and (randomizer == 1) and queststatus2 == 1 then doSummonCreature("Crypt Shambler", monster1) doSummonCreature("Crypt Shambler", monster2) doSummonCreature("Crypt Shambler", monster3) doSummonCreature("Crypt Shambler", monster4) elseif itemEx.itemid == 8288 and itemEx.actionid == 8282 and (randomizer == 2) and queststatus2 == 1 then doSummonCreature("Giant Spider", monster1) doSummonCreature("Giant Spider", monster4) elseif itemEx.itemid == 8288 and itemEx.actionid == 8282 and (randomizer == 3) and queststatus2 == 1 then doSummonCreature("Blightwalker", monster1) setPlayerStorageValue(cid,8282,-1) setPlayerStorageValue(cid,8383,1) elseif itemEx.itemid == 8288 and itemEx.actionid == 8282 and (randomizer >= 4) and queststatus2 == 1 then doSendMagicEffect(playerPos, 45) doCreatureAddHealth(cid, -1000) doSendAnimatedText(playerPos, '1000', TEXTCOLOR_LIGHTGREEN) end if itemEx.itemid == 8288 and itemEx.actionid == 8282 and queststatus2 == -1 then doSendMagicEffect(toPosition, CONST_ME_POFF) end if itemEx.itemid == 8290 and itemEx.actionid == 8383 and (randomizer == 1) and queststatus3 == 1 then doSummonCreature("Crypt Shambler", monster1) doSummonCreature("Crypt Shambler", monster2) doSummonCreature("Crypt Shambler", monster3) doSummonCreature("Crypt Shambler", monster4) elseif itemEx.itemid == 8290 and itemEx.actionid == 8383 and (randomizer == 2) and queststatus3 == 1 then doSummonCreature("Lich", monster1) doSummonCreature("Lich", monster2) doSummonCreature("Lich", monster3) doSummonCreature("Massacre", monster4) elseif itemEx.itemid == 8290 and itemEx.actionid == 8383 and (randomizer == 3) and queststatus3 == 1 then doSummonCreature("Plaguesmith", monster1) setPlayerStorageValue(cid,8383,-1) setPlayerStorageValue(cid,8484,1) elseif itemEx.itemid == 8290 and itemEx.actionid == 8383 and (randomizer >= 4) and queststatus3 == 1 then doSendMagicEffect(playerPos, 45) doCreatureAddHealth(cid, -1000) doSendAnimatedText(playerPos, '1000', TEXTCOLOR_LIGHTGREEN) end if itemEx.itemid == 8290 and itemEx.actionid == 8383 and queststatus3 == -1 then doSendMagicEffect(toPosition, CONST_ME_POFF) end if itemEx.itemid == 8291 and itemEx.actionid == 8484 and (randomizer == 1) and queststatus4 == 1 then doSummonCreature("Hellgorak", monster1) doSummonCreature("Crypt Shambler", monster2) doSummonCreature("Crypt Shambler", monster3) doSummonCreature("Crypt Shambler", monster4) elseif itemEx.itemid == 8291 and itemEx.actionid == 8484 and (randomizer == 2) and queststatus4 == 1 then doSummonCreature("Lich", monster1) doSummonCreature("Lich", monster2) doSummonCreature("Giant Spider", monster2) doSummonCreature("Giant Spider", monster3) elseif itemEx.itemid == 8291 and itemEx.actionid == 8484 and (randomizer == 3) and queststatus4 == 1 then doSummonCreature("Ushuriel2", monster1) doSummonCreature("Juggernaut", monster2) setPlayerStorageValue(cid,8484,-1) setPlayerStorageValue(cid,8585,1) elseif itemEx.itemid == 8291 and itemEx.actionid == 8484 and (randomizer >= 4) and queststatus4 == 1 then doSendMagicEffect(playerPos, 45) doCreatureAddHealth(cid, -1000) doSendAnimatedText(playerPos, '1000', TEXTCOLOR_LIGHTGREEN) end if itemEx.itemid == 8291 and itemEx.actionid == 8484 and queststatus4 == -1 then doSendMagicEffect(toPosition, CONST_ME_POFF) end end Agradeço a atenção, Dou Rep+ para quem solucionar meu problema.
Postado Novembro 12, 2012 12 anos talvez tenha algum script em movements que ao passar pelo tile ela retorna... 16/11/2014 23/11/2014 RIP AnneMotta 21/01/2012 - 15/01/2014 Liga das lendas: DIAMOND É A META
Postado Novembro 12, 2012 12 anos Creio que no script do túmulo, quando o player clicar para ir para a sala de recompensa, lá seja a parte de criar a árvore cheque lá senão tente colocar isso nela. @Teste. local arvoreId = x local arvorePos = {x = x, y = y, z = z} if getTileItemById(arvorePos, arvoreId).uid < 1 then doCreateItem(arvoreId, 1, arvorePos) end Editado Novembro 12, 2012 12 anos por Skyforever (veja o histórico de edições) Retirado. Skype: joaoxtibia85.
Postado Novembro 12, 2012 12 anos Autor @AnneMotta E como eu posso descobrir qual script é esse ? (Desculpe minha ignorância é que sou meio novato com Scripts rs) @Skyforever Não deu, acontece a mesma coisa. :S Editado Novembro 12, 2012 12 anos por Heenrique (veja o histórico de edições)
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.