Ir para conteúdo

Noob II

Membro
  • Registro em

  • Última visita

Tudo que Noob II postou

  1. Não sei e nem tinha reparado kk, só peguei o script do cara acima e adicionei a função para checar se o player tem o item
  2. Poderia ser tbm :s Mas ele falou "como faço pra passar só se usar um certo item ou abrir um certo bau" creio que qualquer um dos dois vai servir.
  3. Se você usa sqlite é ai mesmo que altera posição que o player vai nascer, mas se usar mysql é no config.php do site
  4. Crie um arquivo chamado Livro.lua na pasta data/actions/scripts e coloca isso: function onUse(cid, item, frompos, item2, topos) doPlayerPopupFYI(cid, 'Coloque aqui\nOs Horarios.') return TRUE end no actions.xml adicione essa tag com o ID do livro: <action itemid="1950" event="script" value="Livro.lua"/> Use \n para pular uma linha
  5. Só passa no tile se usa x item local pos = {x = 1226, y = 800, z = 7} local itemid = 8978 -- ID do item function onStepIn(cid, item, position, fromPosition) if getPlayerItemCount(cid,itemid) >= 1 then if getPlayerAccess(cid) then doTeleportThing(cid, pos) doSendMagicEffect(getThingPos(cid), 37) end return true end end Se quiser que o item seja removido só adicionar essa linha no script doPlayerRemoveItem(cid, itemid, 1)
  6. Esse client é de que servidor? eles devem ter criptografado
  7. remove doSendMagicEffect(pos, CONST_ME_POFF)
  8. Noob II postou uma resposta no tópico em Suporte Tibia OTServer
    Com a imagem alterada entre no site e segure o F5 por 5 segundos
  9. <?xml version="1.0" encoding="UTF-8"?> <npc name="Super Reborn" script="reborn 2.lua" walkinterval="0"> <health now="100" max="100"/> <look type="503"/> <parameters> <parameter key="message_greet" value="Olá, |PLAYERNAME|! Eu posso te dar o {Super Reborn}." /> </parameters> </npc> --------------------------------------------------------- local focus = 0 local talk_start = 0 local target = 0 local following = false local attacking = false function onThingMove(creature, thing, oldpos, oldstackpos) end function onCreatureAppear(creature) end function onCreatureDisappear(cid, pos) if focus == cid then selfSay('???') focus = 0 talk_start = 0 end end function onCreatureTurn(creature) end function msgcontains(txt, str) return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)')) end function onCreatureSay(cid, type, msg) msg = string.lower(msg) if (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 then selfSay('Olá! Se voce está pronto, diga "reborn".') focus = cid talk_start = os.clock() elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then selfSay('Desculpe, ' .. getCreatureName(cid) .. '! Hey!.') elseif focus == cid then talk_start = os.clock() if msgcontains(msg, 'reborn') and getPlayerStorageValue(cid,30024) == 4 then selfSay('Desculpe, mas voce já é rebornado.') focus = 0 talk_start = 0 elseif msgcontains(msg, 'reborn') and (getPlayerLevel(cid) < 200 and getPlayerStorageValue(cid,30024) ~= 4) or (getPlayerLevel(cid) > 2000 and getPlayerStorageValue(cid,30024) ~= 4) and getPlayerItemCount(cid,2145) >= 50 then selfSay('Voce precisa de level 200 para rebornar.') focus = 0 talk_start = 0 elseif doPlayerRemoveItem(cid, 2145, 50) == FALSE then doPlayerSendCancel(cid, 'You need to 100 Crystal Coins to ascend.') doSendMagicEffect(pos, CONST_ME_POFF) return FALSE end focus = 0 talk_start = 0 elseif msgcontains(msg, 'reborn') then selfSay('Realmente quer isto?') talk_state = 2 --_GOKU_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 15 and getPlayerItemCount(cid,2145) >= 50 then doReborn(cid,1,10, 501) talk_state = 0 --_VEGETA_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 50000 and getPlayerVocation(cid) == 30 and getPlayerItemCount(cid,2145) >= 50 then doReborn(cid,1,25,510) talk_state = 0 --_PICCOLO_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 50000 and getPlayerVocation(cid) == 43 and getPlayerItemCount(cid,2145) >= 50 then doReborn(cid,1,38,519) talk_state = 0 --_C17_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 50000 and getPlayerVocation(cid) == 56 and getPlayerItemCount(cid,2145) >= 50 then doReborn(cid,1,50,528) talk_state = 0 --_GOHAN_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 50000 and getPlayerVocation(cid) == 70 and getPlayerItemCount(cid,2145) >= 50 then doReborn(cid,1,561,537) talk_state = 0 --_TRUNKS_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 50000 and getPlayerVocation(cid) == 82 and getPlayerItemCount(cid,2145) >= 50 then doReborn(cid,1,74,546) talk_state = 0 --_CELL_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 50000 and getPlayerVocation(cid) == 94 and getPlayerItemCount(cid,2145) >= 50 then doReborn(cid,1,81,555) talk_state = 0 --_FREEZA_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 50000 and getPlayerVocation(cid) == 110 and getPlayerItemCount(cid,2145) >= 50 then doReborn(cid,1,88,564) talk_state = 0 --_MAJIN BOO_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 50000 and getPlayerVocation(cid) == 126 and getPlayerItemCount(cid,2145) >= 50 then doReborn(cid,1,98,573) talk_state = 0 --_BROLY_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 50000 and getPlayerVocation(cid) == 138 and getPlayerItemCount(cid,2145) >= 50 then doReborn(cid,1,113,582) talk_state = 0 --_C18_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 50000 and getPlayerVocation(cid) == 151 and getPlayerItemCount(cid,2145) >= 50 then doReborn(cid,1,50,591) talk_state = 0 --_UUB_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 50000 and getPlayerVocation(cid) == 163 and getPlayerItemCount(cid,2145) >= 50 then doReborn(cid,1,128,600) talk_state = 0 --_GOTEN_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 50000 and getPlayerVocation(cid) == 177 and getPlayerItemCount(cid,2145) >= 50 then doReborn(cid,1,142,609) talk_state = 0 --_CHIBI TRUNKS_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 50000 and getPlayerVocation(cid) == 191 and getPlayerItemCount(cid,2145) >= 50 then doReborn(cid,1,151,611) talk_state = 0 --_COOLER_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 50000 and getPlayerVocation(cid) == 205 and getPlayerItemCount(cid,2145) >= 50 then doReborn(cid,1,153,620) talk_state = 0 --_DENDE_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 50000 and getPlayerVocation(cid) == 217 and getPlayerItemCount(cid,2145) >= 50 then doReborn(cid,1,169,630) talk_state = 0 --_TSUFUL_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 50000 and getPlayerVocation(cid) == 229 and getPlayerItemCount(cid,2145) >= 50 then doReborn(cid,1,180,639) talk_state = 0 --_BARDOCK_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 50000 and getPlayerVocation(cid) == 242 and getPlayerItemCount(cid,2145) >= 50 then doReborn(cid,1,194,648) talk_state = 0 --_KURIRIN_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 50000 and getPlayerVocation(cid) == 255 and getPlayerItemCount(cid,2145) >= 50 then doReborn(cid,1,205,657) talk_state = 0 --_PAN_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 50000 and getPlayerVocation(cid) == 267 and getPlayerItemCount(cid,2145) >= 50 then doReborn(cid,1,212,666) talk_state = 0 --_KAIO_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 50000 and getPlayerVocation(cid) == 279 and getPlayerItemCount(cid,2145) >= 50 then doReborn(cid,1,221,675) talk_state = 0 --_VIDEL_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 50000 and getPlayerVocation(cid) == 291 and getPlayerItemCount(cid,2145) >= 50 then doReborn(cid,1,227,684) talk_state = 0 --_JANEMBA_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 50000 and getPlayerVocation(cid) == 303 and getPlayerItemCount(cid,2145) >= 50 then doReborn(cid,1,234,693) talk_state = 0 --_TENSHINHAN_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 50000 and getPlayerVocation(cid) == 315 and getPlayerItemCount(cid,2145) >= 50 then doReborn(cid,1,246,702) talk_state = 0 --_JENK_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 50000 and getPlayerVocation(cid) == 327 and getPlayerItemCount(cid,2145) >= 50 then doReborn(cid,1,257,711) talk_state = 0 --_RADITZ_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 50000 and getPlayerVocation(cid) == 339 and getPlayerItemCount(cid,2145) >= 50 then doReborn(cid,1,265,720) talk_state = 0 --_C16_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 50000 and getPlayerVocation(cid) == 351 and getPlayerItemCount(cid,2145) >= 50 then doReborn(cid,1,277,729) talk_state = 0 --_TURLES_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 50000 and getPlayerVocation(cid) == 363 and getPlayerItemCount(cid,2145) >= 50 then doReborn(cid,1,285,738) talk_state = 0 --_BULMA_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 50000 and getPlayerVocation(cid) == 375 and getPlayerItemCount(cid,2145) >= 50 then doReborn(cid,1,296,747) talk_state = 0 --_SHENRON_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 50000 and getPlayerVocation(cid) == 387 and getPlayerItemCount(cid,2145) >= 50 then doReborn(cid,1,302,756) talk_state = 0 --_VEGETTO_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 50000 and getPlayerVocation(cid) == 392 and getPlayerItemCount(cid,2145) >= 50 then doReborn(cid,1,308,393) talk_state = 0 --_TAPION_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 50000 and getPlayerVocation(cid) == 411 and getPlayerItemCount(cid,2145) >= 50 then doReborn(cid,1,321,765) talk_state = 0 --_KAME_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 50000 and getPlayerVocation(cid) == 424 and getPlayerItemCount(cid,2145) >= 50 then doReborn(cid,1,335,774) talk_state = 0 --_KING VEGETA_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 50000 and getPlayerVocation(cid) == 436 and getPlayerItemCount(cid,2145) >= 50 then doReborn(cid,1,347,792) talk_state = 0 --_KAGOME_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 50000 and getPlayerVocation(cid) == 448 and getPlayerItemCount(cid,2145) >= 50 then doReborn(cid,1,357,783) talk_state = 0 --_ZAIKO_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 50000 and getPlayerVocation(cid) == 453 and getPlayerItemCount(cid,2145) >= 50 then doReborn(cid,1,368,454) talk_state = 0 --_LORD CHILLED_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 50000 and getPlayerVocation(cid) == 472 and getPlayerItemCount(cid,2145) >= 50 then doReborn(cid,1,375,801) talk_state = 0 --_C8_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 50000 and getPlayerVocation(cid) == 489 and getPlayerItemCount(cid,2145) >= 50 then doReborn(cid,1,517,810) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 then selfSay('Desculpe, ' .. getCreatureName(cid) .. '! Voce deve estar na ultima transformação.') elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then selfSay('Adeus!') focus = 0 talk_start = 0 end end function onThink() doNpcSetCreatureFocus(focus) if (os.clock() - talk_start) > 45 then if focus > 0 then selfSay('Próximo por favor...') end focus = 0 end if focus ~= 0 then if getDistanceToCreature(focus) > 5 then selfSay('Adeus!') focus = 0 end end end
  10. Testa ai, na pasta data/actions;scripts: function onUse(cid, item, fromPosition, itemEx, toPosition) local msg = "Mensagem que irá dizer." local stone = 1500 -- id da pedra pos = {x=657, y=1016, z=7} if itemEx.uid == stone then doTeleportThing(cid, pos) doCreatureSay(cid, msg, TALKTYPE_ORANGE_1) doSendMagicEffect(pos, 10) end return TRUE end no actions.xml <action itemid="IDDACHAVE" event="script" value="CAMINHOPROARQUIVO.lua"/> Tem que alterar o ID da pedra no script e colocar uniqueID tbm na pedra pelo rme
  11. Noob II postou uma resposta no tópico em Suporte Tibia OTServer
    Precisando
  12. Noob II postou uma resposta no tópico em Suporte Tibia OTServer
    Precisando
  13. Noob II postou uma resposta no tópico em Suporte Tibia OTServer
    Não sei pra que essa função serve, deve ser pra o client. remove essas 3 linhas e tenta: if(getPlayerOperatingSystem(cid) >= CLIENTOS_OTCLIENT_LINUX) then registerCreatureEvent(cid, "ExtendedOpcode") end
  14. Você deve ter alterado algum outro arquivo para causar esse erro, pois esse erro não acontece assim. Veja oque vem alterando e disfarça
  15. Noob II postou uma resposta no tópico em Suporte Tibia OTServer
    Remove essa parte aqui: if(not isPlayerGhost(cid)) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT) end se não funcionar poste aqui o 050-fuction.lua da pasta lib
  16. Qual a base? o config.lua tá configurado pra abrir com site, se quiser usar em sqlite (sem site) só usar esse ai: verifique se na pasta do servidor tem um arquivo chamado forgottenserver com o formato .s3db
  17. Noob II postou uma resposta no tópico em Suporte Tibia OTServer
    Tem suporte até a 10.96 > http://www.tibiaking.com/forum/forums/topic/73987-otclient-063-74-à-1096/
  18. Poste o script do npc aqui, que lhe ajudo a adicionar novos lugares... ou se quiser use esse aqui que eu mesmo configurei local saffron = {x = 160, y = 54, z = 7} 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:lower()) end function onThink() npcHandler:onThink() end local talkState = {} function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if msgcontains(msg, "Saffron") then selfSay("Você deseja ser teletransportado para saffron?", cid) talkState[talkUser] = 1 elseif msgcontains(msg, "yes") and talkState[talkUser] == 1 then selfSay("Aí está!", cid) doSendMagicEffect(getThingPos(cid), 10) npcHandler:releaseFocus(cid) doTeleportThing(cid, saffron) doSendMagicEffect(saffron, 10) talkState[talkUser] = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  19. Noob II postou uma resposta no tópico em Suporte Tibia OTServer
    Seu login.lua? poste pra gente dar uma conferida
  20. Isso geralmente acontece quando os arquivos são protegidos, ou é o object builder mesmo que não aguenta
  21. Cuidado ao copiar e salvar algum script, copie de novo local strg = 5021 local temple = {x = 160, y = 54, z = 7} 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:lower()) end function onThink() npcHandler:onThink() end local talkState = {} function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if msgcontains(msg, "Saffron") then selfSay("Você deseja ser teletransportado para saffron?", cid) talkState[talkUser] = 1 elseif msgcontains(msg, "yes") and talkState[talkUser] == 1 then if getPlayerStorageValue(cid, strg) > 0 then selfSay("Aí está!", cid) doSendMagicEffect(getThingPos(cid), 10) npcHandler:releaseFocus(cid) doTeleportThing(cid, temple) doSendMagicEffect(temple, 10) else selfSay("Me desculpe, mas você não tem acesso a saffron.", cid) end talkState[talkUser] = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) use o notepad++
  22. Poste aqui um print do erro e o versionsx.xml da pasta do object builder

Informação Importante

Confirmação de Termo