Postado Abril 14, 2015 10 anos Boa Noite... Estou com Problemas na Quest Fire Walker Boots No Global 8.60 Versão do TFS 0.3.7_SVN é o Seguinte... eu tento quebrar a Pedra Pra poder criar o teleport e nada acontece! Data/Movements/Scripts/PythiusTheRotten/PythiusTheRotten_Enterance.lua function getCreaturesInRange(position, radiusx, radiusy, showMonsters, showPlayers, showSummons) local creaturesList = {} for x = -radiusx, radiusx do for y = -radiusy, radiusy do if not (x == 0 and y == 0) then local creature = getTopCreature({x = position.x+x, y = position.y+y, z = position.z}) if (creature.type == 1 and showPlayers) or (creature.type == 2 and showMonsters and (not showSummons or (showSummons and getCreatureMaster(creature.uid) == (creature.uid)))) then table.insert(creaturesList, creature.uid) end end end end local creature = getTopCreature(position) if (creature.type == 1 and showPlayers) or (creature.type == 2 and showMonsters and (not showSummons or (showSummons and getCreatureMaster(creature.uid) == (creature.uid)))) then if not(table.find(creaturesList, creature.uid)) then table.insert(creaturesList, creature.uid) end end return creaturesList end local once = true local tiles = {{x=32550,y=31373,z=15}, {x=32550,y=31374,z=15}, {x=32550,y=31375,z=15}, {x=32550,y=31376,z=15}, {x=32550,y=31377,z=15}, {x=32550,y=31378,z=15}, {x=32550,y=31379,z=15}, {x=32551,y=31373,z=15}, {x=32551,y=31374,z=15}, {x=32551,y=31375,z=15}, {x=32551,y=31376,z=15}, {x=32551,y=31377,z=15}, {x=32551,y=31378,z=15}, {x=32551,y=31379,z=15}} function onStepIn(cid, item, position, fromPosition) if 99 < getPlayerLevel(cid) then if(getPlayerStorageValue(cid, 13101) < 1 and once or not once) then local players = getCreaturesInRange({x=32566, y=31406, z=15}, 6, 7, FALSE, TRUE) if #players == 0 then local creatures = getCreaturesInRange({x=32566, y=31406, z=15}, 6, 7, TRUE, FALSE) for i = 1, #creatures do doRemoveCreature(creatures[i]) end doRemoveItem(item.uid) doSendMagicEffect(position, CONST_ME_TELEPORT) doTeleportThing(cid, {x=32560, y=31404,z=15}) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT) doCreatureSay(doCreateCreature("Pythius the Rotten", {x=32572, y=31405, z=15}), "WHO IS SNEAKING AROUND BEHIND MY TREASURE?", TALKTYPE_ORANGE_2) for i = 1, #tiles do if i > 8 and i < 15 then doRelocate(tiles[i], {x=tiles[i].x+1, y=i == 14 and tiles[i].y-1 or tiles[i].y, z=tiles[i].z}) end doCreateItem(i == 14 and 1509 or 598, 1, tiles[i]) end doCreateItem(1304, 1, {x=32551,y=31379,z=15}) doCreateItem(9341, 1, {x=32551,y=31379,z=15}) return TRUE else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "There is someone else in the quest room.") end else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have already completed this quest.") end end doTeleportThing(cid, {x=32553, y=31376, z=15}) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT) return TRUE end function onAddItem(moveitem, tileitem, pos) doSendMagicEffect(pos, CONST_ME_TELEPORT) doRelocate(pos, {x=32560, y=31404,z=15}) doSendMagicEffect({x=32560, y=31404,z=15}, CONST_ME_TELEPORT) return TRUE end e a Data/Movements/Scripts/PythiusTheRotten/PythiusTheRotten_Exit.lua (CASO PRECISE DO SCRIPT DE SAIDA PARA ME AJUDAR ) function onStepIn(cid, item, position, fromPosition)doTeleportThing(cid, {x=922, y=1258, z=15}, FALSE) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT) local creatures = getCreaturesInRange({x=936, y=1287, z=15}, 6, 7, TRUE, FALSE) for i = 1, #creatures do doRemoveCreature(creatures[i]) end return TRUE end function onAddItem(moveitem, tileitem, pos) doSendMagicEffect(pos, CONST_ME_TELEPORT) doRelocate(pos, {x=922, y=1258,z=15}) doSendMagicEffect({x=922, y=1258,z=15}, CONST_ME_TELEPORT) return TRUE end Tags: Data/Movements/Movements.xml <!-- PYthius --> <movevent type="AddItem" tileitem="1" actionid="60126" event="script" value="PythiusTheRotten/PythiusTheRotten_Enterance.lua"/> <movevent type="StepIn" actionid="60126" event="script" value="PythiusTheRotten/PythiusTheRotten_Enterance.lua"/> <movevent type="AddItem" tileitem="1" uniqueid="60127" event="script" value="PythiusTheRotten/PythiusTheRotten_Exit.lua"/> <movevent type="StepIn" uniqueid="60127" event="script" value="PythiusTheRotten/PythiusTheRotten_Exit.lua"/> CreatureScripts Data/CreatureScripts/Scripts/PythiusTheRotten.lua function onDeath(cid, corpse, deathList)if getCreatureName(cid):lower() == "pythius the rotten" then for i = 1, #deathList do if isPlayer(deathList[i]) then doCreatureSay(deathList[i], "NICE FIGHTING LITTLE WORM, YOUR VICTORY SHALL BE REWARDED!", TALKTYPE_ORANGE_1, nil, nil, {x=32577, y=31402, z=15}) doSendMagicEffect(getCreaturePosition(deathList[i]), CONST_ME_TELEPORT) doTeleportThing(deathList[i], {x=32577, y=31402, z=15}) doSendMagicEffect({x=32577, y=31402, z=15}, CONST_ME_TELEPORT) break end end end return true end Tag: Data/CreatureScripts/Creaturescripts.xml <event type="death" name="PythiusTheRotten" event="script" value="PythiusTheRotten.lua"/> E Lembrando, o Respaw do Monstro não funciona... ( Talvez ele funciona pela Script que summona ele na sala) VALENDO +REP! VALEU! Editado Abril 14, 2015 10 anos por PobrePreto (veja o histórico de edições) "Ainda que eu ande pelo vale da sombra da morte, não temerei mal algum, pois tu estás comigo. Salmos 23:4"
Postado Abril 14, 2015 10 anos versão do tfs? Precisa de ajuda? Poste a versão de seu TFS. ************************************************************************************************************* Servidores? Eu indico: Use o cupom TIBIAKING e receba 50% de desconto na primeira mensalidade! Pague menos de R$ 19,00 no primeiro mês!
Postado Abril 14, 2015 10 anos Autor 0.3.7_SVN 8.60 "Ainda que eu ande pelo vale da sombra da morte, não temerei mal algum, pois tu estás comigo. Salmos 23:4"
Postado Abril 14, 2015 10 anos modifique actions/scripts/tools/pick.lua local telePos = {x=33356, y=31180, z=8} local newsPosition = {x=33356, y=31180, z=8} local newzPosition = {x=33223, y=31100, z=8} function onUse(cid, item, fromPosition, itemEx, toPosition) if(itemEx.uid <= 65535 or itemEx.actionid > 0) and (itemEx.itemid == 354 or itemEx.itemid == 355) then doTransformItem(itemEx.uid, 392) doDecayItem(itemEx.uid) return true end local newPosition = {x=32566, y=31338, z=10} if(itemEx.uid == 53118) and (itemEx.itemid == 6299) then doTeleportThing(cid, newPosition) doSendMagicEffect(newPosition, CONST_ME_TELEPORT) doSendMagicEffect(fromPosition, CONST_ME_POFF) return true end if toPosition.x == 32551 and toPosition.y == 31379 and toPosition.z == 15 and 99 < getPlayerLevel(cid) then local get1, get2 = getTileItemById({x=32551, y=31379, z=15}, 1304).uid, getTileItemById({x=32551, y=31379, z=15}, 9341).uid if getPlayerStorageValue(cid, 52187) == 14 then --check storage beregar mission if get1 > 0 and get2 > 0 then doRemoveItem(get1) doRemoveItem(get2) for x = 32550, 32551 do for y = 31373, 31379 do if x == 32551 and 31373 < y then doSendMagicEffect({x=x, y=y, z=15}, CONST_ME_POFF) end doCreateItem(5815, 1, {x=x, y=y, z=15}) end end doItemSetAttribute(doCreateItem(1387, 1, {x=32551, y=31376, z=15}), 'aid', 60126) return TRUE end else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You are not a beregar member.") end end if(itemEx.itemid == 7200) then doTransformItem(itemEx.uid, 7236) doSendMagicEffect(toPosition, CONST_ME_BLOCKHIT) return true end if(itemEx.uid == 3623 and getPlayerStorageValue(cid,42324) == 2) then doTeleportThing(cid, telePos, TRUE) doSendMagicEffect(telePos, CONST_ME_POFF) return true end if(itemEx.itemid == 12257 and getPlayerStorageValue(cid,42826) < 0) then doPlayerAddItem(cid,12256,1) setPlayerStorageValue(cid, 42826, 1) doCreatureSay(cid, 'The cracked part of the table lets you cut out a large chunk of wood with your pick.', TALKTYPE_ORANGE_1) return true end if(itemEx.uid == 3623 and getPlayerStorageValue(cid,42324) >= 2) then doTeleportThing(cid, newsPosition, TRUE) doSendMagicEffect(newsPosition, CONST_ME_POFF) return true end if(itemEx.uid == 3633 and getPlayerStorageValue(cid,42324) >= 3) then doTeleportThing(cid, newzPosition, TRUE) doSendMagicEffect(newzPosition, CONST_ME_POFF) return true end if(itemEx.uid == 65532 and itemEx.itemid == 1304) then local newPosition = {x=32566, y=31338, z=10} local tilepos = {x=32808, y=32336, z=11, stackpos=0} local tilepos2 = {x=32809, y=32336, z=11, stackpos=0} local tilepos3 = {x=32810, y=32336, z=11, stackpos=0} local tilepos4 = {x=32808, y=32334, z=11, stackpos=0} local tilepos5 = {x=32807, y=32334, z=11, stackpos=0} local tilepos6 = {x=32807, y=32335, z=11, stackpos=0} local tilepos7 = {x=32807, y=32336, z=11, stackpos=0} local tilepos8 = {x=32807, y=32337, z=11, stackpos=0} local tilepos9 = {x=32806, y=32337, z=11, stackpos=0} local tilepos10 = {x=32805, y=32337, z=11, stackpos=0} local tilepos11 = {x=32805, y=32338, z=11, stackpos=0} local tilepos12 = {x=32805, y=32339, z=11, stackpos=0} local tilepos13 = {x=32806, y=32339, z=11, stackpos=0} local tilepos14 = {x=32806, y=32338, z=11, stackpos=0} local tilepos15 = {x=32807, y=32338, z=11, stackpos=0} local tilepos16 = {x=32808, y=32338, z=11, stackpos=0} local tilepos17 = {x=32808, y=32337, z=11, stackpos=0} local tilepos18 = {x=32809, y=32337, z=11, stackpos=0} local tilepos19 = {x=32810, y=32337, z=11, stackpos=0} local tilepos20 = {x=32811, y=32337, z=11, stackpos=0} local tilepos21 = {x=32811, y=32338, z=11, stackpos=0} local tilepos22 = {x=32806, y=32338, z=11, stackpos=0} local tilepos23 = {x=32810, y=32338, z=11, stackpos=0} local tilepos24 = {x=32810, y=32339, z=11, stackpos=0} local tilepos25 = {x=32809, y=32339, z=11, stackpos=0} local tilepos26 = {x=32809, y=32338, z=11, stackpos=0} local tilepos27 = {x=32811, y=32336, z=11, stackpos=0} local tilepos28 = {x=32811, y=32335, z=11, stackpos=0} local tilepos29 = {x=32810, y=32335, z=11, stackpos=0} local tilepos30 = {x=32809, y=32335, z=11, stackpos=0} local tilepos31 = {x=32808, y=32335, z=11, stackpos=0} local tilepos32 = {x=32809, y=32334, z=11, stackpos=0} local tilepos33 = {x=32809, y=32333, z=11, stackpos=0} local tilepos34 = {x=32810, y=32333, z=11, stackpos=0} local tilepos35 = {x=32811, y=32333, z=11, stackpos=0} local tilepos36 = {x=32806, y=32338, z=11, stackpos=0} local tilepos37 = {x=32810, y=32334, z=11, stackpos=0} local tilepos38 = {x=32811, y=32334, z=11, stackpos=0} local tilepos39 = {x=32812, y=32334, z=11, stackpos=0} local tilepos40 = {x=32813, y=32334, z=11, stackpos=0} local tilepos41 = {x=32814, y=32334, z=11, stackpos=0} local tilepos42 = {x=32812, y=32333, z=11, stackpos=0} local tilepos43 = {x=32810, y=32334, z=11, stackpos=0} local tilepos45 = {x=32812, y=32335, z=11, stackpos=0} local tilepos46 = {x=32813, y=32335, z=11, stackpos=0} local tilepos47 = {x=32814, y=32335, z=11, stackpos=0} local tilepos48 = {x=32814, y=32333, z=11, stackpos=0} local tilepos49 = {x=32813, y=32333, z=11, stackpos=0} local tile4 = getThingfromPos(tilepos4) local tile = getThingfromPos(tilepos) local tile2 = getThingfromPos(tilepos2) local tile3 = getThingfromPos(tilepos3) local tile5 = getThingfromPos(tilepos5) local tile6 = getThingfromPos(tilepos6) local tile7 = getThingfromPos(tilepos7) local tile8 = getThingfromPos(tilepos8) local tile9 = getThingfromPos(tilepos9) local tile10 = getThingfromPos(tilepos10) local tile11 = getThingfromPos(tilepos11) local tile12 = getThingfromPos(tilepos12) local tile13 = getThingfromPos(tilepos13) local tile14 = getThingfromPos(tilepos14) local tile15 = getThingfromPos(tilepos15) local tile16 = getThingfromPos(tilepos16) local tile17 = getThingfromPos(tilepos17) local tile18 = getThingfromPos(tilepos18) local tile19 = getThingfromPos(tilepos19) local tile20 = getThingfromPos(tilepos20) local tile21 = getThingfromPos(tilepos21) local tile22 = getThingfromPos(tilepos22) local tile23 = getThingfromPos(tilepos23) local tile24 = getThingfromPos(tilepos24) local tile25 = getThingfromPos(tilepos25) local tile26 = getThingfromPos(tilepos26) local tile27 = getThingfromPos(tilepos27) local tile28 = getThingfromPos(tilepos28) local tile29 = getThingfromPos(tilepos29) local tile30 = getThingfromPos(tilepos30) local tile31 = getThingfromPos(tilepos31) local tile32 = getThingfromPos(tilepos32) local tile33 = getThingfromPos(tilepos33) local tile34 = getThingfromPos(tilepos34) local tile35 = getThingfromPos(tilepos35) local tile36 = getThingfromPos(tilepos36) local tile37 = getThingfromPos(tilepos37) local tile38 = getThingfromPos(tilepos38) local tile39 = getThingfromPos(tilepos39) local tile40 = getThingfromPos(tilepos40) local tile41 = getThingfromPos(tilepos41) local tile42 = getThingfromPos(tilepos42) local tile43 = getThingfromPos(tilepos43) local tile45 = getThingfromPos(tilepos45) local tile46 = getThingfromPos(tilepos46) local tile47 = getThingfromPos(tilepos47) local tile48 = getThingfromPos(tilepos48) local tile49 = getThingfromPos(tilepos49) doSendMagicEffect(tilepos4,9) doCreateItem(5815,1,tilepos5) doCreateItem(5815,1,tilepos6) doCreateItem(5815,1,tilepos4) doCreateItem(5815,1,tilepos) doCreateItem(5815,1,tilepos2) doCreateItem(5815,1,tilepos3) doCreateItem(5815,1,tilepos7) doCreateItem(5815,1,tilepos8) doCreateItem(5815,1,tilepos9) doCreateItem(5815,1,tilepos10) doCreateItem(5815,1,tilepos11) doCreateItem(5815,1,tilepos12) doCreateItem(5815,1,tilepos13) doCreateItem(5815,1,tilepos14) doCreateItem(5815,1,tilepos15) doCreateItem(5815,1,tilepos16) doCreateItem(5815,1,tilepos17) doCreateItem(5815,1,tilepos18) doCreateItem(5815,1,tilepos19) doCreateItem(5815,1,tilepos20) doCreateItem(5815,1,tilepos21) doCreateItem(5815,1,tilepos22) doCreateItem(5815,1,tilepos23) doCreateItem(5815,1,tilepos24) doCreateItem(5815,1,tilepos25) doCreateItem(5815,1,tilepos26) doCreateItem(5815,1,tilepos27) doCreateItem(5815,1,tilepos28) doCreateItem(5815,1,tilepos29) doCreateItem(5815,1,tilepos30) doCreateItem(5815,1,tilepos31) doCreateItem(5815,1,tilepos32) doCreateItem(5815,1,tilepos33) doCreateItem(5815,1,tilepos34) doCreateItem(5815,1,tilepos35) doCreateItem(5815,1,tilepos36) doCreateItem(5815,1,tilepos37) doCreateItem(5815,1,tilepos38) doCreateItem(5815,1,tilepos39) doCreateItem(5815,1,tilepos40) doCreateItem(5815,1,tilepos41) doCreateItem(5815,1,tilepos42) doCreateItem(5815,1,tilepos43) doCreateItem(5815,1,tilepos45) doCreateItem(5815,1,tilepos46) doCreateItem(5815,1,tilepos47) doCreateItem(5815,1,tilepos48) doCreateItem(5815,1,tilepos49) doTransformItem(itemEx.uid, 2256) return TRUE end end Precisa de ajuda? Poste a versão de seu TFS. ************************************************************************************************************* Servidores? Eu indico: Use o cupom TIBIAKING e receba 50% de desconto na primeira mensalidade! Pague menos de R$ 19,00 no primeiro mês!
Postado Abril 14, 2015 10 anos Autor Acontece alguma coisa, mas Não cria o Teleport pra Poder entrar! "Ainda que eu ande pelo vale da sombra da morte, não temerei mal algum, pois tu estás comigo. Salmos 23:4"
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.