Postado Maio 5, 2014 11 anos Script.. logo abaixo PastaOT/data/actions/scripts local config = { -- level needed to make the quest level = 500, -- if players should be able to do the quest unlimited amount of times (not conflicting quest rewards) redo = { status = true, -- true = unlimited, false = once storageValue = 10035 -- only if status is false this will be used }, -- vocation requirement, positions and item configuration { vocations = {1, 5}, itemId = 2229, playerPos = {x=71, y=208, z=7}, newPos = {x=60, y=236, z=7}, itemPos = {x=72, y=208, z=7} }, { vocations = {2, 6}, itemId = 11225, playerPos = {x=75, y=208, z=7}, newPos = {x=60, y=243, z=7}, itemPos = {x=74, y=208, z=7} }, { vocations = {3, 7}, itemId = 10311, playerPos = {x=73, y=210, z=7}, newPos = {x=64, y=233, z=7}, itemPos = {x=73, y=209, z=7} }, { vocations = {4, 8}, itemId = 5954, playerPos = {x=73, y=206, z=7}, newPos = {x=64, y=245, z=7}, itemPos = {x=73, y=207, z=7} } } function onUse(cid) local players = {} for _, v in ipairs(config) do v.playerPos.stackpos = 253 local player = getThingfromPos(v.playerPos).uid if isPlayer(player) == FALSE then return doPlayerSendCancel(cid, "There are not enough players.") elseif getPlayerLevel(player) < config.level then players.level = true elseif isInArray(v.vocations, getPlayerVocation(player)) == FALSE then players.vocation = true elseif config.redo.status and getPlayerStorageValue(cid, config.redo.storageValue) ~= TRUE then players.done = true else v.itemPos.stackpos = 1 local item = getThingfromPos(v.itemPos) if item.itemid ~= v.itemId then players.item = true else table.insert(players, player) end end end if players.level then doPlayerSendCancel(cid, "All players need to be level " .. config.level .. " or above.") elseif players.vocation then doPlayerSendCancel(cid, "All players must stand on the correct tiles.") elseif players.item then doPlayerSendCancel(cid, "All items must be on the correct positions.") else for k, player in ipairs(players) do doSendMagicEffect(getCreaturePosition(player), CONST_ME_POFF) doTeleportThing(player, config[k].newPos) doSendMagicEffect(getCreaturePosition(player), CONST_ME_TELEPORT) end end return TRUE end PastaOT/data/actions/actions.xml <action uniqueid="34794" script="luciferus.lua"/> Ajudei? REP+ Spriter: |||||||||| 10%
Postado Maio 5, 2014 11 anos Qual o problema? Dá algum erro? O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680Este tópico foi movido: De: "OTServ → Scripting → CreatureScripts, GlobalEvents e MoveMents" Para: "OTServ → Suporte OTServ" -"Supra Omnes Lux Lucis" - Acima de todos brilha a Luz -
Postado Maio 8, 2014 11 anos Autor os players colocavam os itens em seus lugares corretos, posições corretas, mas não teleportava ao puxar a alavanca e não, não dava nenhum erro, apenas não teleportava os players. Ajudei? REP+ Spriter: |||||||||| 10%
Postado Maio 8, 2014 11 anos Confere se as posições que estão no script está certa no seu mapa ! Está é a posição para onde o player vai,confere se está certo com a do seu mapa : newPos = {x=60, y=236, z=7}, Ajudei = REP+ Não dou suporte por PM qualquer dúvida procure no fórum,caso não encontre oque procura crie um tópico. [email protected]" /> | TFS 0.4 DEV | %5Bcreaturescript%5D Icones no minimap com descrição%5Btalkaction%5D Adicionar ou remover VIP do player.%5Bcreaturescripts%5D Senha para porta%5Btalkaction%5D Mandar mensagem para pasta do servidorMapa Evento War Castle%5Baction%5D Canoa em MovimentoTeleport Scroll System%5Bcreaturescripts%5D Recompensa por level para X vocations%5Btalkaction%5D Adicionar X item para o player%5Btalkactions%5D Adicionar item para todos players online%5Baction%5D Item que teleporta o player para house[action+movement] Passaporte para entrar no barco
Postado Maio 27, 2014 11 anos Alguem sabe como fazer para os itens sumir quando os players forem teleportados?
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.