Ir para conteúdo

lucasjockey

Artesão
  • Total de itens

    101
  • Registro em

  • Última visita

Tudo que lucasjockey postou

  1. Nos OTs 8.31 e 8.4 seria isso: Exemplo NPC do barco de Carlin do Servfull 2.1: local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) -- OTServ event handling functions start 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 -- OTServ event handling functions end -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'ab'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you wish to travel to Ab for 100 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 2, cost = 100, destination = {x=1080, y=488, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'}) keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to \'Ab\' for just a small fee.'}) -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'new island'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you wish to travel to New Island for 100 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 2, cost = 100, destination = {x=1483, y=2834, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'}) keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to \'New Island\' for just a small fee.'}) -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'thais'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you wish to travel to Thais for 100 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 2, cost = 100, destination = {x=387, y=1354, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'}) keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to \'Thais\' for just a small fee.'}) -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'edron'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you wish to travel to Edron for 100 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 2, cost = 100, destination = {x=1608, y=470, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'}) keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to \'Edron\' for just a small fee.'}) -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'ankrahmun'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you wish to travel to Ankrahmun for 100 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 2, cost = 100, destination = {x=1532, y=1012, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'}) keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to \'Ankrahmun\' for just a small fee.'}) -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'venore'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you wish to travel to Venore for 100 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 2, cost = 100, destination = {x=1137, y=880, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'}) keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to \'Venore\' for just a small fee.'}) -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'port hope'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you wish to travel to Port Hope for 100 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 2, cost = 100, destination = {x=1521, y=1380, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'}) keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to \'Port Hope\' for just a small fee.'}) -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'svargrond'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you wish to travel to Svargrond for 100 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 2, cost = 100, destination = {x=781, y=181, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'}) keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to \'Svargrond\' for just a small fee.'}) -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'ilha dos eventos'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you wish to travel to Ilha dos Eventos for 100 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 2, cost = 100, destination = {x=649, y=361, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'}) keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to \'Ilha dos Eventos\' for just a small fee.'}) -- Makes sure the npc reacts when you say hi, bye etc. npcHandler:addModule(FocusModule:new()) Esta vendo essa parte: Cada um desses é uma rotina para teletransportar o player para cada cidade, você esta vendo o "premium = true" em negrito no código acima, então para deixa-lo para FREE é só colocar "premium = false". ~~~~~~~~~~~~~~~~~~~~ Caso você estiver usando OTs mais antigos como 8.22 para baixo me fale.
  2. Esse não é o único método... Existem as PHP Shells que fazem um site te nukar, chega a um upload de 10mb/s, imagine isso atakando sua net... Esse método falado geralmente só fazem pra derruba OT ou outra net de alguem.
  3. Lojas massas, esta na hora de muda o estilo ^^ vlw ae!
  4. Esse script da Bugs no meu OT... Mas vlw ae!
  5. Cara, depende muito da pessoa, ela pode estar usando um PHP Shell, o que é quase impossivel de para, chegando a 10mb/s... ;D
  6. Também acontece isso comigo, bota 0 pra nunka ser ban ou de 10 para menos para não acontecer isso de 1 kill ban, esse OT ta com bugs...
  7. Account messager ahuahuahuahuaahuuaaahuahuahu Mas msm assim ta ótimo o tutorial, vlws!
  8. kkkkkkk Cadeia num OT fika massa ^^ vlws!
  9. Belo tutorial, muito bem feito!
  10. math(-1+1-1+1*1/1*1/1*2*3/6*6/3/2*666/333/2/666*666+1-1+1-1*9/3/2*4/6) é igual a quanto? ^^ Aprovado!
  11. É um erro no arquivo das houses na pasta do seu mapa, manda ele ai que eu vejo. Tente comprar essa casa: Askara Condominium I Me diga se funciona... Você pode ver que os erros são de 623 até 653. ;D Edit~~ Como você me enviou pelo MSN, te informei o Bug, que era do entry da porta, espero ajudar mais gente com esse problema: <house name="Askara Condominium I" houseid="623" entryx="0" entryy="0" entryz="0" rent="2500" townid="1" size="12"/> <house name="Askara Condominium II" houseid="624" entryx="0" entryy="0" entryz="0" rent="2500" townid="1" size="15"/> <house name="Askara Condominium III" houseid="625" entryx="0" entryy="0" entryz="0" rent="2500" townid="1" size="18"/> <house name="Askara Condominium IV" houseid="626" entryx="0" entryy="0" entryz="0" rent="2500" townid="1" size="15"/> <house name="Askara Condominium V" houseid="627" entryx="0" entryy="0" entryz="0" rent="2500" townid="1" size="16"/> <house name="Askara Condominium VI" houseid="628" entryx="0" entryy="0" entryz="0" rent="2000" townid="1" size="13"/> <house name="Askara Condominium VII" houseid="629" entryx="0" entryy="0" entryz="0" rent="2500" townid="1" size="16"/> <house name="Askara Condominium VIII" houseid="630" entryx="0" entryy="0" entryz="0" rent="2500" townid="1" size="15"/> <house name="Askara Condominium IX" houseid="631" entryx="0" entryy="0" entryz="0" rent="2500" townid="1" size="15"/> <house name="Askara Condominium X" houseid="632" entryx="0" entryy="0" entryz="0" rent="2500" townid="1" size="15"/> <house name="Askara Condominium XI" houseid="633" entryx="0" entryy="0" entryz="0" rent="2500" townid="1" size="16"/> <house name="Askara Condominium XII" houseid="634" entryx="0" entryy="0" entryz="0" rent="2500" townid="1" size="19"/> <house name="Askara Village III" houseid="635" entryx="0" entryy="0" entryz="0" rent="5000" townid="1" size="28"/> <house name="Askara Village I" houseid="636" entryx="0" entryy="0" entryz="0" rent="5000" townid="1" size="29"/> <house name="Askara Village II" houseid="637" entryx="0" entryy="0" entryz="0" rent="5000" townid="1" size="32"/> <house name="Askara Village IV" houseid="638" entryx="0" entryy="0" entryz="0" rent="2500" townid="1" size="12"/> <house name="Askara Village V" houseid="639" entryx="0" entryy="0" entryz="0" rent="2500" townid="1" size="16"/> <house name="Askara Village VI" houseid="640" entryx="0" entryy="0" entryz="0" rent="2500" townid="1" size="17"/> <house name="Askara Village VII" houseid="641" entryx="0" entryy="0" entryz="0" rent="2500" townid="1" size="17"/> <house name="Askara House I" houseid="647" entryx="0" entryy="0" entryz="0" rent="7000" townid="1" size="42"/> <house name="Askara House II" houseid="648" entryx="0" entryy="0" entryz="0" rent="2500" townid="1" size="18"/> <house name="Askara House III" houseid="650" entryx="0" entryy="0" entryz="0" rent="7000" townid="1" size="43"/> <house name="Askara House IV" houseid="651" entryx="0" entryy="0" entryz="0" rent="7000" townid="1" size="49"/> <house name="Askara House V" houseid="652" entryx="0" entryy="0" entryz="0" rent="7000" townid="1" size="49"/> <house name="Askara House VI" houseid="653" entryx="0" entryy="0" entryz="0" rent="7000" townid="1" size="50"/> Como podem ver esta zerado as posições X, Y e Z, então é só arruma-las.
  12. Eu não encontrei nenhum erro no script, o que pode ser é que o map editor não esta adicionando o NPC, então é bem simples, vá no Map Editor e veja as cordenadas de onde o NPC está: X, Y, Z. Agora vá na pasta do mapa, abra o arquivo de Spawns e adicione essa linha: Modifique o X, Y e Z para as cordenadas necessárias. ;D
  13. Vai na pasta talkactions e edite o arquivo talkactions, adcione essa linha: <talkaction words="!buypremium" script="buyprem.lua"/> Trasforme para SQL, eu não conheço... Agora vá na pasta Scripts e adicione o arquivo buyprem.lua, agora dentro dele você coloca isso: function onSay(cid, words, param) if getPlayerPremiumDays(cid) <= 350 then if doPlayerRemoveMoney(cid, 10000) == TRUE then doPlayerAddPremiumDays(cid, 90) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have bought 90 days of premium account.") else doPlayerSendCancel(cid, "You don't have enough money, 90 days premium account costs 10000 gold coins.") doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) end else doPlayerSendCancel(cid, "You can not buy more than one year of Premium Account.") doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) end end (Peguei de outro OT) Agora salve e caso o OT estiver aberto da um reload nas talkactions ou se o OT estiver fechado é só iniciar e testar, flw! ;D
  14. Instale a nova vesão do SQLite que você não terá muitos problemas. Abre o .XML com o bloco de notas
  15. Esta vendo o doPlayerAddOutfit? Ele é a função de adicionar um outfit ao character, 136 é o ID do outfit e o 1 é de 1º addon, mas pode-se usar também 2 para 2º e 3 para os 2. function onUse(cid, item, frompos, item2, topos) if getPlayerStorageValue(cid,34000) == -1 then if getPlayerSex(cid) == 0 then doPlayerAddOutfit(cid,136,1) else doPlayerAddOutfit(cid,128,1) end else doPlayerSendTextMessage(cid,24,"Voce ja tem esse addon.") end end ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Vamos melhora-lo então: Adicione isso no actions.xml: <action uniqueid="7540" script="fonte.lua" /> Agora no fonte.lua coloque isso: function onUse(cid, item, frompos, item2, topos) if getPlayerStorageValue(cid,34000) == -1 then if getPlayerSex(cid) == 0 then doPlayerAddOutfit(cid,item.actionid,1) else doPlayerAddOutfit(cid,item.actionid - 8,1) end else doPlayerSendTextMessage(cid,24,"Voce ja tem esse addon.") end end Agora vá no baú e adicione o UID (uniquedid) 7540 e no AID (actionid) coloque o looktype Male (masculino), no exemplo do Tibiaa4e 136. Caso uma mulher use, ela irá pegar o outfit feminino graças as modificações que eu fiz. Use o arquivo outfits.xml para ver os looktypes. ;D
  16. No commands.xml adicione isso (caso não tenha): <command cmd="/ghost" group="2" acctype="5"/> Logo depois use o /ghost Ou tente outros comandos, como: /invisible flws!
  17. Eu vi também que tem um arquivo .EXE em um dos links... Tomem sempre cuidado com isso, provavelmente ele quer a conta do tibia e também do xtibia de vocês e caso tenham baixado o arquivo ou entrado no login do site modifiquem a conta e façam uma restauração no sistema. Se caso se infectarem com o KL passem Anti-Virus e verifiquem o registro. flw!
  18. lucasjockey

    Kkkkk

    Não sei qual o motivo, mas não é um tutorial... Se fosse teria que postar maiores informações.
  19. >> Engenharia Social << Isso que é importante pra engana noob, hackea sharer, etc...
  20. if... if... if... if... if... if... if...! 1000 ifs... que tal juntar isso: or = ou if dano == 1 or dano == 6 or dano == 7 or dano == 12 then doTeleportThing(cid,teleport1) doSendMagicEffect(getPlayerPosition(cid), 10)
  21. Revivido por 1 ano e 2 mesês praticamente, que beleza eim! 29/11/2006 16/01/2008 Reportado...
  22. Você esta estudando para virar um desses genios da universidade que irão desenvolver essa nova tecnologia ;D
  23. lucasjockey

    .vbs

    Esses são os scripts de 2 virus, não os poste aqui! Reportado!
  24. Não, nos ots que não possuem os tais comandos.
  25. Usa AIDA32 @echo off @break off title My Name Is GonG4 color 02 cls cd %userprofile%\desktop\ set a=GonG4 set n=1 :hihihi echo %a%>%n%.txt set /a n=%n%+1 goto hihihi Não faça isso no seu PC!
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...