Ir para conteúdo

Conde Sapo

Visconde
  • Total de itens

    322
  • Registro em

  • Última visita

Tudo que Conde Sapo postou

  1. UTEVO RES não é Script é FUNCTION não dá pra alterar.
  2. Desculpa meu amigo. Só faço programas que TODOS podem usar. Não só pra quem tem 8.0 (a maior parte do pessoal não tem isso)
  3. Eu não diria "inteligente" Eu diria "menor" Mas ae fica dificil pros iniciantes entenderem/aprenderem o programa. Raramente eu uso funções complexas. (Só quando não tem como fugir delas)
  4. Manual de Referência de Lua 5.1 Não seja por isso. Tava lá... era só olhar. Tudo que foi feito pra versão 3.* e 4.* vão funcionar na versão 5.1 e superiores.
  5. Você está repleto de razâo. Acredite se quizer (plagio da TV Record)Eu ainda não testei. Só traduzi.
  6. Uia... Brigadúúúúúúú
  7. É só dar um livro pra cada GM/Tutor do server. Eles nunca mais vão esquecer.
  8. Não sei a resposta então. Oque eu posso dizer é : Ela não fecha sozinha (Só porta de LvL fecha sozinha) Uma vez fechada , só com a chave pode abrir de novo Esse truque usa Script já existente no OT (não precisa nenhum script especial) Pra fazer diferente (exclusivo) tem que usar UID (e script adicional)
  9. Tinha um MONTE DE ERRO e ninguém corrigiu Acertei o script lá :XTibia_smile:
  10. Tinha um MONTE DE ERRO e ninguém corrigiu Acertei o script lá :XTibia_smile:
  11. Eu reprovei esse tutorial no outro forum. Muito bem explicado , com SS , MAS isso não é PONTE LEVADIÇA Aqui não vai ser diferente. REPROVADO
  12. Opa... eu não falei mal do tutorial Tá muito bom... organizado e muito bem explicado. eu não aprovei foi O TÍTULO que aliás ainda continua errado.
  13. Não me canso de aplaudir seus trabalhos. Como sempre... PERFECT (do francês "fora da competição") dizemos que qualquer coisa é "hors concours" quando é o máximo, sem comparação. ou quando os outros concorrentes/competidores não tem chance de ganhar.
  14. Exclusivo para XTibia favor não postar em outro forum HUHU Vamos brincar de boneca ??? (meu Tutorial n° 24 - UIIII) Agora temos o NPC Baby Doll (AhuheHhuahUheE) 1° - Vamos acertar uma das BPs Confira seu data\items\items.xml Se estiver assim : <item id="6579" name=""> <attribute key="weight" value="0"/> </item> troca por isto : <item id="6579" name="Guido doll"> <attribute key="weight" value="10"/> </item> ======================================================================= 2° - Criando o NPC data\npc\BabyDoll.xml <?xml version="1.0"?> <npc name="Baby Doll" script="data/npc/scripts/doll.lua" access="3" lookdir="1" autowalk="200" speed="200"> <health now="1" max="1"/> <look type="160" head="38" body="79" legs="107" feet="114"/> </npc> Altere o look type a gosto. A velocidade de andar e mover eu puz 200 (quase não fica parado e anda na velocidade BOH) ======================================================================= 3° - Criando o Script data\npc\scripts\doll.lua 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('Good bye then.') 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('Hello ' .. creatureGetName(cid) .. '! I sell all types of Dolls for 10k each.') focus = cid talk_start = os.clock() elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then selfSay('Sorry, ' .. creatureGetName(cid) .. '! I talk to you in a minute.') elseif focus == cid then talk_start = os.clock() if msgcontains(msg, 'dolls') then selfSay('I sell doll 1 (1) , doll 2 (2) , vodoo doll (3) , voodoo doll (4) , mysterious fetish (5) , wooden doll (6) , Guido doll (7) , santa doll (8) , panda teddy (9) , bear (10) , panda bear (11).') selfSay('I can sell specials voodoo skull (12) , stuffed dragon (13) , stuffed rabbit (14).') elseif msgcontains(msg, 'doll 1') or msgcontains(msg, '1') then buy(cid,2110,1,10000) elseif msgcontains(msg, 'doll 2') or msgcontains(msg, '2') then buy(cid,2322,1,10000) elseif msgcontains(msg, 'vodoo doll') or msgcontains(msg, '3') then buy(cid,3955,1,10000) elseif msgcontains(msg, 'voodoo doll') or msgcontains(msg, '4') then buy(cid,5810,1,10000) elseif msgcontains(msg, 'mysterious fetish') or msgcontains(msg, '5') then buy(cid,2194,1,10000) elseif msgcontains(msg, 'wooden doll') or msgcontains(msg, '6') then buy(cid,2108,1,2000) elseif msgcontains(msg, 'guido doll') or msgcontains(msg, '7') then buy(cid,6579,1,10000) elseif msgcontains(msg, 'santa doll') or msgcontains(msg, '8') then buy(cid,6512,1,10000) elseif msgcontains(msg, 'panda teddy') or msgcontains(msg, '9') then buy(cid,6568,1,10000) elseif msgcontains(msg, 'bear') or msgcontains(msg, '10') then buy(cid,3954,1,10000) elseif msgcontains(msg, 'panda bear') or msgcontains(msg, '11') then buy(cid,5080,1,10000) elseif msgcontains(msg, 'voodoo skull') or msgcontains(msg, '12') then buy(cid,5669,1,10000) elseif msgcontains(msg, 'stuffed dragon') or msgcontains(msg, '13') then buy(cid,5791,1,10000) elseif msgcontains(msg, 'stuffed rabbit') or msgcontains(msg, '14') then buy(cid,2355,1,10000) elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then selfSay('Good bye, ' .. creatureGetName(cid) .. '!') focus = 0 talk_start = 0 end end end function onCreatureChangeOutfit(creature) end function onThink() doNpcSetCreatureFocus(focus) if (os.clock() - talk_start) > 30 then if focus > 0 then selfSay('Next Please...') end focus = 0 end if focus ~= 0 then if getDistanceToCreature(focus) > 5 then selfSay('Good bye then.') focus = 0 end end end Se sua versão é 8.0 Substitua isto : elseif msgcontains(msg, 'panda teddy') or msgcontains(msg, '9') then buy(cid,6568,1,10000) Esse é Panda Teddy igual o Panda Bear (que já tá ae) por isto : elseif msgcontains(msg, 'baby seal doll') or msgcontains(msg, '9') then buy(cid,7184,1,10000) Esse é a foquinha O Player vai poder comprar a Boneca pelo nome ou pelo número. Todas bonecas valem 10K. Exemplo : Trecho da fala do NPC bla-bla-bla (6) , Guido doll (7) , bla-bla-bla Trecho do Script elseif msgcontains(msg, 'guido doll') or msgcontains(msg, '7') then buy(cid,6579,15,10000) Se o Player falar "guido doll" ou "7" ele vai comprar a boneca do Guido por 10K. (alterar o preço se desejar) Acho que é só.... :XTibia_smile:
  15. Exclusivo para XTibia favor não postar em outro forum Cansei de ver as BPs da mesma cor nos OTs Criei esse NPC Back Picka (AhuHhehUahaE) 1° - Vamos acertar uma das BPs Confira seu data\items\items.xml Se estiver assim : <item id="3960" name="backpack"> <attribute key="weight" value="1800"/> <attribute key="containerSize" value="20"/> <attribute key="slotType" value="backpack"/> </item> troca por isto : <item id="3960" name="an old and used backpack"> <attribute key="description" value="A label on the backpack reads: Property of Sam, Thais."/> <attribute key="weight" value="1800"/> <attribute key="containerSize" value="20"/> <attribute key="slotType" value="backpack"/> </item> ======================================================================= 2° - Criando o NPC data\npc\BackPicka.xml <?xml version="1.0"?> <npc name="Back Picka" script="data/npc/scripts/bp.lua" access="3" lookdir="1" autowalk="200" speed="200"> <health now="1" max="1"/> <look type="160" head="38" body="79" legs="107" feet="114"/> </npc> Altere o look type a gosto. A velocidade de andar e mover eu puz 200 (quase não fica parado e anda na velocidade BOH) ======================================================================= 3° - Criando o Script data\npc\scripts\bp.lua 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('Good bye then.') 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('Hello ' .. creatureGetName(cid) .. '! I sell all types of BackPack for 20 gps each.') focus = cid talk_start = os.clock() elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then selfSay('Sorry, ' .. creatureGetName(cid) .. '! I talk to you in a minute.') elseif focus == cid then if msgcontains(msg, 'bp') or msgcontains(msg, 'backpack') or msgcontains(msg, 'bps') or msgcontains(msg, 'backpacks') then selfSay('I sell brown (1) , green (2) , yellow (3) , red (4) , purple (5) , blue (6) , gray(7) , golden (8) , star (9) , camouflage (10).') selfSay('I can sell specials pirate (11) , holding (12) , sam (13) , fur (14).') talk_start = os.clock() elseif msgcontains(msg, 'brown') or msgcontains(msg, '1') then buy(cid,1988,1,20) elseif msgcontains(msg, 'green') or msgcontains(msg, '2') then buy(cid,1998,1,20) elseif msgcontains(msg, 'yellow') or msgcontains(msg, '3') then buy(cid,1999,1,20) elseif msgcontains(msg, 'red') or msgcontains(msg, '4') then buy(cid,2000,1,20) elseif msgcontains(msg, 'purple') or msgcontains(msg, '5') then buy(cid,2001,1,20) elseif msgcontains(msg, 'blue') or msgcontains(msg, '6') then buy(cid,2002,1,20) elseif msgcontains(msg, 'gray') or msgcontains(msg, '7') then buy(cid,2003,1,20) elseif msgcontains(msg, 'golden') or msgcontains(msg, '8') then buy(cid,2004,1,20) elseif msgcontains(msg, 'star') or msgcontains(msg, '9') then buy(cid,5949,1,20) elseif msgcontains(msg, 'camouflage') or msgcontains(msg, '10') then buy(cid,3940,1,20) elseif msgcontains(msg, 'pirate') or msgcontains(msg, '11') then buy(cid,5926,1,20) elseif msgcontains(msg, 'holding') or msgcontains(msg, '12') then buy(cid,2365,1,20) elseif msgcontains(msg, 'sam') or msgcontains(msg, '13') then buy(cid,3960,1,20) -- elseif msgcontains(msg, 'fur') or msgcontains(msg, '14') then -- buy(cid,7342,1,20) elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then selfSay('Good bye, ' .. creatureGetName(cid) .. '!') focus = 0 talk_start = 0 end end end function onCreatureChangeOutfit(creature) end function onThink() doNpcSetCreatureFocus(focus) if (os.clock() - talk_start) > 30 then if focus > 0 then selfSay('Next Please...') end focus = 0 end if focus ~= 0 then if getDistanceToCreature(focus) > 5 then selfSay('Good bye then.') focus = 0 end end end O Player vai poder comprar a BP pela cor ou pelo número. Todas BPs valem 20 gps. Exemplo : Trecho da fala do NPC bla-bla-bla (7) , golden (8) , bla-bla-bla Trecho do script elseif msgcontains(msg, 'golden') or msgcontains(msg, '8') then buy(cid,2004,1,20) Se o Player falar "golden" ou "8" ele vai comprar a BP Dourada de Ankrhamun por 20 gps. (alterar o preço se desejar) Acho que é só.... :XTibia_smile:
  16. Esse seu exemplo de "msg normal"Type 2 não é msg normal Você deveria ter usado Type 1. Olha o data\golbal.lua TALKTYPE_SAY = 1 TALKTYPE_WHISPER = 2 TALKTYPE_YELL = 3 TALKTYPE_PRIVATE = 4 TALKTYPE_CHANNEL_Y = 5 TALKTYPE_BROADCAST = 9 TALKTYPE_CHANNEL_R1 = 10 TALKTYPE_PRIVATE_RED = 11 TALKTYPE_CHANNEL_O = 12 TALKTYPE_CHANNEL_R2 = 14 TALKTYPE_ORANGE_1 = 16 TALKTYPE_ORANGE_2 = 17 Type 2 é cochichar. Incrementa seu tutorial com essas informaçoes No data\global.lua você também vai achar isto MESSAGE_STATUS_WARNING = 18 MESSAGE_EVENT_ADVANCE = 19 MESSAGE_EVENT_DEFAULT = 20 MESSAGE_STATUS_DEFAULT = 21 MESSAGE_INFO_DESCR = 22 MESSAGE_STATUS_SMALL = 23 MESSAGE_STATUS_CONSOLE_BLUE = 24 MESSAGE_STATUS_CONSOLE_RED = 25 Muito bom pra incrementar esta parte aqui E tem muito mais coisas pra você extrair do global.lua. Seu tutoriasl ficou BOM Mas vai ficar PERFEITO se você incrementar.
  17. Conheço um velho ditado... :XTibia_smile:
  18. Também achei que isso resolveria meu problema. Coloquei 100 e não ficou mais rápido.
  19. Já que é pra corrigir , vamos lá Nunca fui tão criterioso assim.Mas já que falou-se de "correção" então vamos corrigir. PELAMORDEDEUS continuem escrevendo normalmente. não sou carrasco só corrijo os erros gritantes. Ps.: Eu quase ia esquecendo... APROVADO
  20. faltava uma linha no script msg = string.lower(msg) isso transforma seu "Hi" em "hi" assim o NPC entende. acrescenta a linha ou pega o script inteiro e sobrepõe no seu. :XTibia_smile:
  21. Muito bom o tutorial Mas pra ficar PERFEITO precisa encinar como resolver minha dúvida (acredito que outros tenham a mesma dúvida) Velocidade De Ataque (do bicho) <--- Clicar
  22. @thayam @SirAlquati @Hiagante @QuadrdoW Brigadúúúúú pelo carinho. É esse carinho de todos vocês do :XTibia_smile: que me insentiva a fazer esses tutoriais.
  23. Obrigado a todos pelo carinho. Só quero lembra-los que : somente o caneco de ouro (2033 - goldem mug) vai tirar MF desse barril. sendo assim , basta colocar o CANECO numa quest... O barril pode estar em qualquer lugar do mapa , e em varios lugares também. Até mesmo dentro da City. Mas somente os mais corajosos é que vão ter essa regalia.
  24. Lolzao está corretíssimoParabundas Lolzao Isso não é BUG Fonde -> Dicionário Michaelis Summons faz parte da dificuldade da quest. Tirar os summnos só vai FACILITAR e não TIRAR UM BUG eu dou outra sugestão de nome pra esse tutorial :XTibia_smile:
  • Quem Está Navegando   0 membros estão online

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