Postado Janeiro 12, 2016 9 anos alguem me ajuda a criar um script .. de um item que leve o player para o templo.. quando ele nao esta PZ e nao esta de batle. TFS 1.2 vlwww
Postado Janeiro 13, 2016 9 anos Cara, precisa ser um item? Eu coloquei no meu server e geral reclamou e pediu pra virar uma magia. É esta aqui;. Crie um arquivo chamado 'citytp.lua' e coloque dentro da pasta spells. function onCastSpell(cid, var) local function doTeleport(cid, count) if (not isPlayer(cid)) then return true end doSendAnimatedText(getCreaturePosition(cid), (30 - count).."s", COLOR_ORANGE) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_YELLOW_RINGS) if (count == 30) then return doCreatureSetNoMove(cid, false) and doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) else addEvent(doTeleport, 1000, cid, count + 1) end return true end if (not isPlayerPzLocked(cid)) then if (not getCreatureCondition(cid, 1024)) then return doCreatureSetNoMove(cid, true) and doTeleport(cid, 0) else doPlayerSendTextMessage(cid,MESSAGE_STATUS_SMALL,"You cannot use this command while you are infight.") return false end else doPlayerSendTextMessage(cid,MESSAGE_STATUS_SMALL,"You cannot use this command while you are pz locked.") return false end end E, depois, dentro de spells.xml vc coloca isto: <instant name="City Teleport" words="exani hom" lvl="100" mana="0" aggressive="0" selftarget="1" exhaustion="1200000" needlearn="0" event="script" value="citytp.lua"> <vocation id="1"/> <vocation id="2"/> <vocation id="3"/> <vocation id="4"/> <vocation id="5"/> <vocation id="6"/> <vocation id="7"/> <vocation id="8"/> </instant> <instant nam Veja, vc pode configurar a palavra para chamar a magic ('exani hom'), o level para usar, a mana usada e um 'cooldown' de 2 horas (120 mil milisegundos). Se, ainda assim, quiser com item, me avisa aqui que faço e mando aqui. The Last Man Standing - 100% funcional
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.