

thayam
Cavaleiro-
Total de itens
179 -
Registro em
-
Última visita
Tudo que thayam postou
-
Npc Que Só Fala Com Premmy E Se Locomove Facilmente
tópico respondeu ao thayam de thayam em NPCs, monsters e raids
O kra pode cre vamu marca sim Vlw pelos elogios ae é sempre um prazer ajudar kra minha fan bar ta saindo, assim que sai te mando uma PM avisando flws abraços Thayam~~ -
Npc Que Só Fala Com Premmy E Se Locomove Facilmente
um tópico no fórum postou thayam NPCs, monsters e raids
Aew galera eu sei que tem otros topicos que ensinam como fazer npc andar... mas desse jeito que eu vou ensinar eh mais facil. Eu nunk vi nenhum tutorial q ensinava igual vou ensinar. Lembrando que eh somente para 7.81+ esse tutorial Vou pegar um npc de Aol que eh Muito Muito simples mesmo... focus = 0 talk_start = 0 target = 0 following = false 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 scarfs (1k) and aols (40k).') *** ***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, 'aol') then *** buy(cid,2173,1,40000) ***elseif msgcontains(msg, 'scarf') then *** buy(cid,2661,1,1000) ***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() if focus > 0 then *** x, y, z = creatureGetPosition(focus) myx, myy, myz = selfGetPosition() if ((myy-y==0) and (myx-x<=0 and myx-x>=-4)) then *** *** *** selfTurn(0) end *** if ((myy-y==0) and (myx-x>=0 and myx-x<=4)) then *** *** *** selfTurn(2) end *** *** *** if ((myx-x==0) and (myy-y<=0 and myy-y>=-4)) then *** *** *** selfTurn(1) end if ((myx-x==0) and (myy-y>=0 and myy-y<=4)) then *** *** *** selfTurn(3) end if ((myy-y==-2) and (myx-x>=-1 and myx-x<=1)) then *** *** *** selfTurn(1) end if ((myy-y==2) and (myx-x>=-1 and myx-x<=1)) then *** *** *** ***selfTurn(3) end if ((myx-x==2) and (myy-y>=-1 and myy-y<=1)) then *** *** *** ***selfTurn(2) end if ((myx-x==-2) and (myy-y>=-1 and myy-y<=1)) then *** *** *** ***selfTurn(0) end if ((myy-y==-3) and (myx-x>=-2 and myx-x<=2)) then *** *** *** ***selfTurn(1) end if ((myy-y==3) and (myx-x>=-2 and myx-x<=2)) then *** *** *** ***selfTurn(3) end if ((myx-x==3) and (myy-y>=-2 and myy-y<=2)) then *** *** *** ***selfTurn(2) end if ((myx-x==-3) and (myy-y>=-2 and myy-y<=2)) then *** *** *** ***selfTurn(0) end if ((myy-y==-4) and (myx-x>=-3 and myx-x<=3)) then *** *** *** ***selfTurn(1) end if ((myy-y==4) and (myx-x>=-3 and myx-x<=3)) then *** *** *** ***selfTurn(3) end if ((myx-x==4) and (myy-y>=-3 and myy-y<=3)) then *** *** *** ***selfTurn(2) end if ((myx-x==-4) and (myy-y>=-3 and myy-y<=3)) then *** *** *** ***selfTurn(0) end end *** 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 Ate ai tudo bem... ai agora vcs vao procurar a funcao Onthink usem ctrl+f para axar, ela esta exatamente assim Citação: function onThink() agora voces vao copiar e colar logo em baixo da linha do function onThink() o seguinte if focus == 0 then selfWalk(4) end e depois que voce colar isso essa parte ficara mais ou menos assim function onThink() if focus == 0 then *** selfWalk(4) *** end e no final seu script acabara ficando assim Citação: focus = 0 talk_start = 0 target = 0 following = false 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 scarfs (1k) and aols (40k).') *** ***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, 'aol') then *** buy(cid,2173,1,40000) ***elseif msgcontains(msg, 'scarf') then *** buy(cid,2661,1,1000) ***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() if focus == 0 then *** selfWalk(4) *** end if focus > 0 then *** x, y, z = creatureGetPosition(focus) myx, myy, myz = selfGetPosition() if ((myy-y==0) and (myx-x<=0 and myx-x>=-4)) then *** *** *** selfTurn(0) end *** if ((myy-y==0) and (myx-x>=0 and myx-x<=4)) then *** *** *** selfTurn(2) end *** *** *** if ((myx-x==0) and (myy-y<=0 and myy-y>=-4)) then *** *** *** selfTurn(1) end if ((myx-x==0) and (myy-y>=0 and myy-y<=4)) then *** *** *** selfTurn(3) end if ((myy-y==-2) and (myx-x>=-1 and myx-x<=1)) then *** *** *** selfTurn(1) end if ((myy-y==2) and (myx-x>=-1 and myx-x<=1)) then *** *** *** ***selfTurn(3) end if ((myx-x==2) and (myy-y>=-1 and myy-y<=1)) then *** *** *** ***selfTurn(2) end if ((myx-x==-2) and (myy-y>=-1 and myy-y<=1)) then *** *** *** ***selfTurn(0) end if ((myy-y==-3) and (myx-x>=-2 and myx-x<=2)) then *** *** *** ***selfTurn(1) end if ((myy-y==3) and (myx-x>=-2 and myx-x<=2)) then *** *** *** ***selfTurn(3) end if ((myx-x==3) and (myy-y>=-2 and myy-y<=2)) then *** *** *** ***selfTurn(2) end if ((myx-x==-3) and (myy-y>=-2 and myy-y<=2)) then *** *** *** ***selfTurn(0) end if ((myy-y==-4) and (myx-x>=-3 and myx-x<=3)) then *** *** *** ***selfTurn(1) end if ((myy-y==4) and (myx-x>=-3 and myx-x<=3)) then *** *** *** ***selfTurn(3) end if ((myx-x==4) and (myy-y>=-3 and myy-y<=3)) then *** *** *** ***selfTurn(2) end if ((myx-x==-4) and (myy-y>=-3 and myy-y<=3)) then *** *** *** ***selfTurn(0) end end *** 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 Agora eu vou ensinar como fazer um npc falar Somente com premmy account's... esse tutorial eu nunca vi aqui no forum. Eh o seguinte vou fazer com o npc de Aol denovo pq ele eh muito simples. Voce pega um npc de aol e ele vai estar mais ou menos assim focus = 0 talk_start = 0 target = 0 following = false 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 scarfs (1k) and aols (40k).') *** ***focus = cid *** ***talk_start = os.clock() *** elseif focus == cid then ***talk_start = os.clock() ***if msgcontains(msg, 'aol') then *** buy(cid,2173,1,40000) ***elseif msgcontains(msg, 'scarf') then *** buy(cid,2661,1,1000) ***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() if focus == 0 then *** selfWalk(4) *** end if focus > 0 then *** x, y, z = creatureGetPosition(focus) myx, myy, myz = selfGetPosition() if ((myy-y==0) and (myx-x<=0 and myx-x>=-4)) then *** *** *** selfTurn(0) end *** if ((myy-y==0) and (myx-x>=0 and myx-x<=4)) then *** *** *** selfTurn(2) end *** *** *** if ((myx-x==0) and (myy-y<=0 and myy-y>=-4)) then *** *** *** selfTurn(1) end if ((myx-x==0) and (myy-y>=0 and myy-y<=4)) then *** *** *** selfTurn(3) end if ((myy-y==-2) and (myx-x>=-1 and myx-x<=1)) then *** *** *** selfTurn(1) end if ((myy-y==2) and (myx-x>=-1 and myx-x<=1)) then *** *** *** ***selfTurn(3) end if ((myx-x==2) and (myy-y>=-1 and myy-y<=1)) then *** *** *** ***selfTurn(2) end if ((myx-x==-2) and (myy-y>=-1 and myy-y<=1)) then *** *** *** ***selfTurn(0) end if ((myy-y==-3) and (myx-x>=-2 and myx-x<=2)) then *** *** *** ***selfTurn(1) end if ((myy-y==3) and (myx-x>=-2 and myx-x<=2)) then *** *** *** ***selfTurn(3) end if ((myx-x==3) and (myy-y>=-2 and myy-y<=2)) then *** *** *** ***selfTurn(2) end if ((myx-x==-3) and (myy-y>=-2 and myy-y<=2)) then *** *** *** ***selfTurn(0) end if ((myy-y==-4) and (myx-x>=-3 and myx-x<=3)) then *** *** *** ***selfTurn(1) end if ((myy-y==4) and (myx-x>=-3 and myx-x<=3)) then *** *** *** ***selfTurn(3) end if ((myx-x==4) and (myy-y>=-3 and myy-y<=3)) then *** *** *** ***selfTurn(2) end if ((myx-x==-4) and (myy-y>=-3 and myy-y<=3)) then *** *** *** ***selfTurn(0) end end *** 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 Agora voces vao procurar essa parte aqui *** ***if (msgcontains(msg, 'hi') and focus == 0) and getDistanceToCreature(cid) < 4 then *** ***selfSay('Hello ' .. creatureGetName(cid) .. '! I sell scarfs (1k) and aols (40k).') *** ***focus = cid *** ***talk_start = os.clock() quando axarem essa parte voces vao colocar if isPremium(cid) then Bem embaixo de onde ta escrito if (msgcontains(msg, 'hi') and focus == 0) and getDistanceToCreature(cid) < 4 then entao essa parte ira ficar mais ou menos assim *** if (msgcontains(msg, 'hi') and focus == 0) and getDistanceToCreature(cid) < 4 then ***if isPremium(cid) then *** ***selfSay('Hello ' .. creatureGetName(cid) .. '! I sell scarfs (1k) and aols (40k).') *** ***focus = cid *** ***talk_start = os.clock() agora ele so fala com premmy accounts, mais ainda falta um pekeno detalhe, voce tem q coloca logo em baixo do talk_start = os.clock() voces vao colocar isso daki else selfSay('Sai daki gentalha... So falo com Premmy accounts! .') focus = 0 talk_start = 0 ficando assim esse script Citação: *** *** if (msgcontains(msg, 'hi') and focus == 0) and getDistanceToCreature(cid) < 4 then ***if isPremium(cid) then *** ***selfSay('Hello ' .. creatureGetName(cid) .. '! I sell scarfs (1k) and aols (40k).') *** ***focus = cid *** ***talk_start = os.clock() else *** selfSay('Sai daki gentalha... So falo com Premmy accounts! .') *** focus = 0 *** talk_start = 0 end Eh isso ai galera, kem gostou fala ai porque gostou e quem nao gostou fala ai tambem pq nao gostou =p -
Ficou Bom kra parabens pelomenos pra mim que gosto de yurots ta blz falows
-
#Topic VLW Pelos coments galera #Drenius Então kra, eu tava com uns problemas no computador aqui e com minha internet, mais agora que arrumei ja estou de volta a ativa e sempre que possivel irei ajuda-lo e a todos os outros que prescisarem Abraços Thayam~~
-
Addons Bugados? Saiba Como Conserta-los!
tópico respondeu ao thayam de thayam em Tutoriais de Scripting
#Drenius Valeu Cara, mais uma fez vc comentando nos meus posts, vc está me dando um grande apoio cara valeu por td Abraços Thayam~~ -
Aow pessoas olha eu aqui de novo Bom seguinte, em alguns OTs os addons estão com problema, saiba aqui como conserta-los Vamos ao Tuto 1º que não sao os addons q estão bugados... mas sim o npc Varkhal abra a pasta data\npc\script e abra o arkivo addon ele estará assim: Bom este é o Tutorial, espero ter ajudado POR FAVOR COMENTEM, SUA OPNIÃO É MUITO IMPORTANTE PARA MIM!!!
-
MUITO BOM mesmo me ajudou e sei que vai ajudar a muitas pessoas parabens espero que este tópico seja fixado abraços
-
OTIMOO sem coments manow muito show parabens nota 9.0 ( axei que poderia ter variado um pouco no respaw da saida da primeira city ) mais fora isso ta beleza mano
-
KSPaoksPOASKok flar oq pro Dekoo manow se nao for o melhor é um dos melhores, cara otimo muito bom mesmo falows ~~Edited~~ Cara isso tem imcompatibilidade com algum server pq eu testei aqui no YurOts 0.3(Versão 8.0)0 e tipo eu uso na boua, aumenta certinho, mais se eu tiro ele e dps coloco de novo ele some, e após o server fexar ao voltar com o character que possui esse anel o Ot fexa por erro critico HELP PLX
-
Dahora kra muito bom mesmo falows
-
VLW kra era isso que eu estava procurando muito bom funfo certinho Recomendo
-
SHow Man Muito loko kra so teu fã vei parabens
-
[Arquivado]Contra Hacker De Otserv
tópico respondeu ao gonn_carrerinha de thayam em Noticias - Arquivo
Dahora cara. muito bom parabens -
HUHSUAHSUH tbm axei isso, mais ta valendo xP flws
-
Aew Galera estou trazendo esse tópico para o XTibia, e ja aviso, não fui eu quem fiz. Neste tutorial vou explicar como colocar mais um sexo com os looktypes novos exemplo: male(homem) female(mulher) guardiao(guarda) vamos ao que importa: abra com bloco de notas data/outfits voce ira encontrar isso ADICIONE ISTO: A cor rosa eh o sexo exemplo male(1) female(0) guradiao(3) A cor azul eh o looktype novos Creditos by Conde 90% ( Topic ) Creditos by Thayam 10% ( Por trazer ao Forum )
-
Tutorial De Como Ser Um Bom Gm/god
tópico respondeu ao Wey.Ctba de thayam em Tutoriais para Iniciantes
MUITO BOM MESMO vai ajudar muitas pessoas que começam agr como me ajudou qnd eu estava de começo parabens kra -
Boua Teres vai ajudar muitas pessoas aqui no forum parabens
-
Dahora mesmo manow vai ajuda muitos ake no forum
-
IRADO BROW MUITO BOM MESMO EU JA TINHA VISTO ESSE TUTO ANTES MAIS NAO TINHA COMENTADO, MTU BOM ISSU EH A BASE PARA UM SERVER DESCENTE KRA PARABENS
-
Como Fazer Passagem Que Só Premium Account Passa.
tópico respondeu ao Warlokinho de thayam em Tutoriais de Mapping
Hehe Bem criativo cara parabens flws -
Como Fazer Passegens Para Debaixo D'agua Sem Teleport's
tópico respondeu ao Addict de thayam em Tutoriais de Mapping
Bouaa Addict, muito bom e facil de fazer, vai ajudar muitas pessoas que estão começando agr flws ae -
Realmente eh muito facil, eu ja sabia disso ae kra. Mais vai ajudar muitos hosters iniciantes a melhorarem seu server. Vle pelo tuto ae flws
-
Como Add Outfit Para Usar Sem Tirar Outra Outfit
tópico respondeu ao juizfelipe de thayam em Tutoriais de Scripting
@juizflipe É kra só funfo no forgetten e no LithOts, mais blz mesmo assim vlw mano fiko mtu bom o Tuto pra quem usa esses servers vai fik mtu show falows kra ----EDITED--- Kra vc sabe algum jeito pra fazer funcionar na versão yurOts?? se souber me avisa plx Obrigado Flws -
aew mano bom mesmo vlw ae
-
Eh mano o Tuto ta certo, mais ta meio confuso mais blz vlw pelo tuto ae fera
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.