Ir para conteúdo
  • Cadastre-se

[Duvida] Tem Com Faze Teleporte Por Espelho com Level


Posts Recomendados

Tipo Queria Sabe Se Tem Como Fazer 1 Teleporte nao com 1387 Mas Com O Espelho da parede tipo o cara clica no espelho ele vai no lugar com a position tipo 1 teleporte normal mas queria que esse teleporte tivesse level pra entrar e 1 efeito att !

13978461.png
Link para o post
Compartilhar em outros sites

Va em /data/actions/scripts crie um arquivo e renomeie pra qualquer nome

adcione isso dentro

function onUse(cid, item)

local level = 100 -- aki e o levél do player

pos = {x= 0, y= 0, z= 0} -- aki e pos

if getPlayerLevel(cid) >= level then

doTeleportThing(cid,pos)

doSendMagicEffect(getPlayerPosition(cid), 12) -- efeito se ele for teleportado

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você foi teleportado")-- mensagem se ele for teleportado

else

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "aceso negado apenas players com level "..level.." mais podem entrar.") -- mensagem se ele nao for teleportado

doSendMagicEffect(getPlayerPosition(cid), 11) -- efeito se ele nao for teleportado

end

return TRUE

end

em actions.xml adcione essa tag:

<action itemid="iddoitem" script="nomedoscript.lua" />

se ajudei REP+

Editado por Skyforever
Errei uma letra agora esta 100% (veja o histórico de edições)

Retirado.

 

Skype: joaoxtibia85.

Link para o post
Compartilhar em outros sites

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.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

  • Conteúdo Similar

    • Por Kramer
      Preciso da ajuda de vocês, sou iniciante em script's.
      To quebrando a cabeça pra fazer uma talkaction de teleporte semelhante ao /goto, com as restrições
       
       
    • Por DboHere
      Entao to precisando de uma script que quando clica numa lavanca voce e teleportado para x y z e consome 1 item.
      E tbm bau que ganha outfit pra poketibia.
       
      Plis que ajuda 
    • Por principe sharingan
      Bom galera é o seguinte, eu tentei criar um NPC que teleporta por X item. Mas sempre dava um erro quando vai adiciona-lo no mapa. Ai resolvi fazer uma Script que quando você clica na Estatua, porta, parede ou coisa do tipo você é teleportado se tiver X Item.
      ( PS: Quando vc é teleportado o item não é removido de sua bag. Você cotinua com o item, como se fosse uma permissão !! )
      Bom, vamos deixar de papo furado, e vamos ao que interessa. Vai em: data/actions/scripts crie um arquivo .lua com o nome que você quiser e cole isso:
      Agora vá em actions.xml e cole essa tag:
      Action ID
      Nome do arquivo que você criou em: data/actions/scripts
    • Por yasmincxz
      Olá gente , quero pedir a ajuda de vocês , bom tenho um servidor de nto e essa script que ta logo a baixo ta funcionando certo , porem quando o player vai querer ir pra twint ou dark labyrinth ela não leva o player e fala que levo ,( mais ele n sai do lugar) me ajudem a arrumar
       
      local keywordHandler = KeywordHandler:new()
      local npcHandler = NpcHandler:new(keywordHandler)
      NpcSystem.parseParameters(npcHandler)
      function onCreatureAppear(cid)                npcHandler:onCreatureAppear(cid) end
      function onCreatureDisappear(cid)             npcHandler:onCreatureDisappear(cid) end
      function onCreatureSay(cid, type, msg)     npcHandler:onCreatureSay(cid, type, msg) end
      function onThink()                         npcHandler:onThink() end
       
       
      local travelNode = keywordHandler:addKeyword({'konoha'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you wanna go to Konoha Gakure, are you sure?'})
          travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler,  level = 1, cost = 0, destination = {x=1015, y=911, z=7} })
          travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Next time maybe.'})
       
      local travelNode = keywordHandler:addKeyword({'small florest'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Dou you wanna go to Small Florest, are you sure?'})
          travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler,  level = 1, cost = 0, destination = {x=789, y=905, z=7} })
          travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Next time maybe.'})
       
       
      local travelNode = keywordHandler:addKeyword({'naara florest'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Dou you wanna go to Naara Florest, are you sure?'})
          travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, level = 1, cost = 0, destination = {x=848, y=718, z=7} })
          travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Next time maybe.'})
       
       
      local travelNode = keywordHandler:addKeyword({'desert montain'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you wanna go to Desert Montain, are you sure?'})
          travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, level = 1, cost = 0, destination = {x=975, y=757, z=7} })
          travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Next time maybe.'})
       
       
      local travelNode = keywordHandler:addKeyword({'water island'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Dou you wanna go to Water Island, are you sure?'})
          travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, level = 1, cost = 0, destination = {x=1170, y=1214, z=7} })
       travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Next time maybe.'})
       
      local travelNode = keywordHandler:addKeyword({'akatsuki entrance'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Dou you wanna go to Akatsuki Entrance, are you sure?'})
          travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, level = 1, cost = 0, destination = {x=910, y=738, z=7} })
          travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Next time maybe.'})
          
          local travelNode = keywordHandler:addKeyword({'turtle land'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Dou you wanna go to Turtle Land, are you sure?'})
          travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, level = 1, cost = 0, destination = {x=21069, y=918, z=7} })
          travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Next time maybe.'})
          
          local travelNode = keywordHandler:addKeyword({'akatsuki island'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Dou you wanna go to Akatsuki Island, are you sure?'})
          travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, level = 1, cost = 0, destination = {x=60454, y=1490, z=7} })
          travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Next time maybe.'})
          
          local travelNode = keywordHandler:addKeyword({'twint'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Dou you wanna go to Twint, are you sure?'})
          travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, level = 1, cost = 0, destination = {x = 60544, y = 366, z = 7} })
          travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Next time maybe.'})
          
          local travelNode = keywordHandler:addKeyword({'dark labyrinth'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Dou you wanna go to Dark Labyrinth, are you sure?'})
          travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, level = 1, cost = 0, destination = {x=62630, y=1527, z=7} })
          travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Next time maybe.'})

              keywordHandler:addKeyword({'viajar'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Posso leva-lo para, Konoha, Akatsuki Island, Dark Labyrinth, Twint, Turtle Land, Small Florest, Naara Florest, Naara Desert, Desert Montain, Water Island, and Akatsuki Entrance'})
              -- Makes sure the npc reacts when you say hi, bye etc.
              npcHandler:addModule(FocusModule:new())
    • Por williamcgv
      Eu uso essa script funciona normal mas ...
      local pos = {x = 1226, y = 800, z = 7} function onStepIn(cid, item, position, fromPosition) if getPlayerAccess(cid) then doTeleportThing(cid, pos) doSendMagicEffect(getThingPos(cid), 37) end return true end Quando um monstro passa em cima do piso ele da esse erro no distro:
       
      [21/04/2015 18:20:07] [Error - MoveEvents Interface]  [21/04/2015 18:20:07] data/movements/scripts/anihi4.lua:onStepIn [21/04/2015 18:20:07] Description:  [21/04/2015 18:20:07] (internalGetPlayerInfo) Player not found when requesting player info #1
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo