grigacuin 15 Postado Agosto 19, 2011 Share Postado Agosto 19, 2011 (editado) Oi gente, eu criei esse script hoje, só para acalmar XD, Noob[8]: Pra q serve esse script? ¬¬" Viciadorlz[61857: Pra ser teleportado pro templo, más ele so funciona 1 veiz!! cuidado ae XD ----------------------------------------------------------------------------------- Let's GO!! Primeiro, crie qualqr arquivo .lua e renomeie para tp1, coloque isso dentro: function onSay(cid, words, param) tp = getPlayerStorageValue(cid,9995) if tp == -1 then pos = getTownTemplePosition(pos) doTeleportThing(cid, pos) doSendMagicEffect(pos, CONST_ME_TELEPORT) setPlayerStorageValue(cid,9995,1) else doPlayerSendTextMessage(cid,23,"Voce ja usou esse comando.") end end Feche e salve, agora abra o Talkactions.XML e coloque isso XD <talkaction words="!tp" script="tp1.lua"/> Para adicionar outro !tp é só fazer isso,criar outro .lua com o nome tp2 e colocar isso dentro XD: function onSay(cid, words, param) tp = getPlayerStorageValue(cid,9996) if tp == -1 then pos = getTownTemplePosition(pos) doTeleportThing(cid, pos) doSendMagicEffect(pos, CONST_ME_TELEPORT) setPlayerStorageValue(cid,9996,1) else doPlayerSendTextMessage(cid,23,"Essa e a sua segunda e ultima chance!") end end e adicionar isso no talkactions.XML <talkaction words="!tp2" script="tp2.lua"/> e vá fazendo XD Te ajudei? REP+ Comentem ae gente XD Edit~ Aqui funciono, espero que funcione ae, vlws e flws. Editado Agosto 19, 2011 por Viciadorlz Link para o comentário https://xtibia.com/forum/topic/165414-talkaction-tp-1-veiz-s%C3%B3/ Compartilhar em outros sites More sharing options...
YondaimeBRG 0 Postado Agosto 21, 2011 Share Postado Agosto 21, 2011 vlw! Link para o comentário https://xtibia.com/forum/topic/165414-talkaction-tp-1-veiz-s%C3%B3/#findComment-1088998 Compartilhar em outros sites More sharing options...
f3li93darzan 0 Postado Agosto 22, 2011 Share Postado Agosto 22, 2011 tipo quero colocar isso pra se teleportar para uma hunt especial, tem como trocar as cordenadas ? Link para o comentário https://xtibia.com/forum/topic/165414-talkaction-tp-1-veiz-s%C3%B3/#findComment-1089629 Compartilhar em outros sites More sharing options...
grigacuin 15 Postado Agosto 22, 2011 Autor Share Postado Agosto 22, 2011 Tem sim o script ficaria +/- assim: function onSay(cid, words, param) tp = getPlayerStorageValue(cid,9995) if tp == -1 then pos = {x=160, y=54, z=7} doTeleportThing(cid, pos) doSendMagicEffect(pos, CONST_ME_TELEPORT) setPlayerStorageValue(cid,9995,1) else doPlayerSendTextMessage(cid,23,"Voce ja usou esse comando.") end end Aqui voce muda pra position que voce qr, e pronto xD :XTibia_smile: :weight_lift: Link para o comentário https://xtibia.com/forum/topic/165414-talkaction-tp-1-veiz-s%C3%B3/#findComment-1089655 Compartilhar em outros sites More sharing options...
adelso10 2 Postado Agosto 25, 2011 Share Postado Agosto 25, 2011 kara tem como fazer um q possa usa direto ? so q so lvl 20+ possa usa ? Link para o comentário https://xtibia.com/forum/topic/165414-talkaction-tp-1-veiz-s%C3%B3/#findComment-1091945 Compartilhar em outros sites More sharing options...
grigacuin 15 Postado Agosto 26, 2011 Autor Share Postado Agosto 26, 2011 (editado) Sem Storage ID: Com Level, Veja se funciona, nao testei por falta de tempo. function onSay(cid, words, param) getPlayerLevel(itemEx.uid) < 130) and getPlayerCustomFlagValue(itemEx.uid, PlayerCustomFlag_GamemasterPrivileges) == FALSE) then doCreatureSay(itemEx.uid, "Para usar esse comando voce prescisa ser nivel maior ou igual a 20!", TALKTYPE_ORANGE_1) pos = {x=160, y=54, z=7} doTeleportThing(cid, pos) doSendMagicEffect(pos, CONST_ME_TELEPORT) end end Aqui voce pode mudar, Espero ter ajudado, Se ajudei, REP+ :button_ok: :weight_lift: "Trabalhando duro, nós chegamos lá! Editado Agosto 26, 2011 por Viciadorlz Link para o comentário https://xtibia.com/forum/topic/165414-talkaction-tp-1-veiz-s%C3%B3/#findComment-1092113 Compartilhar em outros sites More sharing options...
adelso10 2 Postado Setembro 17, 2011 Share Postado Setembro 17, 2011 n deu mais obg Link para o comentário https://xtibia.com/forum/topic/165414-talkaction-tp-1-veiz-s%C3%B3/#findComment-1104456 Compartilhar em outros sites More sharing options...
grigacuin 15 Postado Setembro 18, 2011 Autor Share Postado Setembro 18, 2011 Entao tente este: function onSay(cid) getPlayerLevel < 20) then doCreatureSay(itemEx.uid, "Para usar esse comando voce prescisa ser nivel maior ou igual a 20!", TALKTYPE_ORANGE_1) pos = {x=160, y=54, z=7} doTeleportThing(cid, pos) doSendMagicEffect(pos, CONST_ME_TELEPORT) end end Espero ter ajudado. Ajudei? REP+ Link para o comentário https://xtibia.com/forum/topic/165414-talkaction-tp-1-veiz-s%C3%B3/#findComment-1104559 Compartilhar em outros sites More sharing options...
Vodkart 1515 Postado Setembro 18, 2011 Share Postado Setembro 18, 2011 function onSay(cid, words, param) if getPlayerLevel(cid) < 20 then return doPlayerSendTextMessage(cid,23,"Voce não tem level suficiente.") end return doTeleportThing(cid, {x=160, y=54, z=7}) end Link para o comentário https://xtibia.com/forum/topic/165414-talkaction-tp-1-veiz-s%C3%B3/#findComment-1104573 Compartilhar em outros sites More sharing options...
Posts Recomendados