hassio 1 Postado Março 24, 2007 Share Postado Março 24, 2007 Como devem ter percebido, o padre serve para fazer casamentos! Não é muito utilizado, mas ao ver um Padre, uma boa impressão do OT surge. Vamos ao que interessa! Abra a pasta NPC, em data e copie qualquer NPC. Depois, apague todo o conteúdo e cole: Código: <?xml version="1.0"?> <npc name="Padre" script="data/npc/scripts/padre.lua" access="4" lookdir="2"> <mana now="800" max="800"/> <health now="200" max="200"/> <look type="57" head="79" body="79" legs="79" feet="79"/> </npc> Não se esqueça de renomear o arquivo para o nome: "Padre". Agora, abra a pasta "scripts", e copie qualquer arquivo. Apague todo o conteúdo do arquivo copiado, e cole: Código: focus1 = 0 focus2 = 0 talk_start = 0 target = 0 following = false attacking = false talkstate = 0 moved=0 function onThingMove(creature, thing, oldpos, oldstackpos) end function onCreatureAppear(creature) end function onCreatureDisappear(id, stackpos) if id == focus1 or id == focus1 then ceremonyend('Goodbye, then.') 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 ceremonyend(msg) focus1 = 0 focus2 = 0 talk_start = 0 talkstate = 0 selfSay(msg) end function onCreatureSay(cid, type, msg) msg = string.lower(msg) if talkstate == 1 then if cid == focus2 then if msgcontains(msg, 'yes') then talkstate=2 selfSay('' .. creatureGetName(focus1) .. ' should I begin the ceremony?') else ceremonyend('Come back when you are ready.') end end end if talkstate == 2 then if cid == focus1 then if msgcontains(msg, 'yes') then talkstate=3 else ceremonyend('Come back when you are ready.') end end end if talkstate == 9 then if cid == focus1 then if string.find(msg, '(%a*)yes(%a*)') then talkstate=10 else ceremonyend('Come back when you are ready.') end end end if talkstate == 11 then if cid == focus2 then if string.find(msg, '(%a*)yes(%a*)') then talkstate=12 else ceremonyend('Volte quando estiver pronto.') end end end if msgcontains(msg, 'hi') and focus1 > 0 and focus2 == 0 and not(cid==focus1) and isPromoted(cid) and getDistanceToCreature(cid) < 4 then if getPlayerStorageValue(cid,2001) == -1 then selfSay('Olá, ' .. creatureGetName(cid) .. '! Eu sou um Padre, posso te casar. Podemos começar?!?') focus2 = cid talk_start = os.clock() talkstate=1 else selfSay('You are already married.') end end if msgcontains(msg, 'hi') and focus1 == 0 and isPromoted(cid) and getDistanceToCreature(cid) < 4 then if getPlayerStorageValue(cid,2001) == -1 then selfSay('Oi, ' .. creatureGetName(cid) .. '! Eu sou um Padre, e posso te casar.') focus1 = cid talk_start = os.clock() else selfSay('Tú já se casou.') end end if msgcontains(msg, 'ishtar') and (focus1 == cid or focus2 == cid) then selfSay('Ishtar é uma #####...Aquela gorda me chifrou com o Porteiro do prédio...Era um negão com um bigode na testa...') talk_start = os.clock() end if string.find(msg, '(%a*)bye(%a*)') and (focus1 == cid or focus2 == cid) and getDistanceToCreature(cid) < 6 then ceremonyend('Adeus, ' .. creatureGetName(cid) .. '!') end end function onCreatureChangeOutfit(creature) end function onThink() if talkstate==3 and (os.clock() - talk_start) > 10 then selfSay('Blablablablablablabla..'); talk_start = os.clock() talkstate=4 end if talkstate==4 and (os.clock() - talk_start) > 6 then selfSay('Blablablablablablabla..'); talk_start = os.clock() talkstate=5 end if talkstate==5 and (os.clock() - talk_start) > 6 then selfSay('Blablablablablablabla..'); talk_start = os.clock() talkstate=6 end if talkstate==6 and (os.clock() - talk_start) > 8 then selfSay('Blablablablablablabla..'); talk_start = os.clock() talkstate=7 end if talkstate==7 and (os.clock() - talk_start) > 6 then selfSay('Blablablablablablabla...'); talk_start = os.clock() talkstate=8 end if talkstate==8 and (os.clock() - talk_start) > 6 then selfSay(creatureGetName(focus1) .. ' quer se casar com ' .. creatureGetName(focus2) .. '?'); talk_start = os.clock() talkstate=9 end if talkstate==10 and (os.clock() - talk_start) > 6 then selfSay(creatureGetName(focus2) .. ' quer se casar com ' .. creatureGetName(focus1) .. '?'); talk_start = os.clock() talkstate=11 end if talkstate==12 and (os.clock() - talk_start) > 6 then pla1 = creatureGetName(focus1) pla2 = creatureGetName(focus2) getMarried(focus2,pla1) getMarried(focus1,pla2) ceremonyend('Estão casados.'); talk_start = os.clock() end if (os.clock() - talk_start) > 100 then if focus1 > 0 or focus2 > 0 then ceremonyend('Goodbye, then.') end end --if moved==0 then --x, y, z = selfGetPosition() --moveToPosition(x+1, y, z) --moved=1 --end end Não esqueça de Renomear o arquivo para o nome: "padre". AVISO!: Antes que os players comecem a reclamar, aviso que somente players com premmium account e vocação superior podem se casar!! Link para o comentário https://xtibia.com/forum/topic/46022-npc-padre-realiza-casamentos/ Compartilhar em outros sites More sharing options...
skynagerloas 1 Postado Maio 25, 2007 Share Postado Maio 25, 2007 Tópico contendo somente 1 NpC, essa seção é para DataPacks com 3 ou mais Npcs, ~o{Tópico Movido}o~, Abraços. Link para o comentário https://xtibia.com/forum/topic/46022-npc-padre-realiza-casamentos/#findComment-305031 Compartilhar em outros sites More sharing options...
IPod 0 Postado Junho 24, 2007 Share Postado Junho 24, 2007 =D Um Casamenteiro AEKPOekpoA Bem Q os player tava pedindo!!! OK! Bye Tank's! Cya Link para o comentário https://xtibia.com/forum/topic/46022-npc-padre-realiza-casamentos/#findComment-324346 Compartilhar em outros sites More sharing options...
GM Volcano 1 Postado Junho 29, 2007 Share Postado Junho 29, 2007 O que deve dizer para iniciar o casamento?? Link para o comentário https://xtibia.com/forum/topic/46022-npc-padre-realiza-casamentos/#findComment-328888 Compartilhar em outros sites More sharing options...
Exordium 0 Postado Junho 30, 2007 Share Postado Junho 30, 2007 Parece legal.. mas nao entendo muito, quais sao as falas que se deve dizer e quais as que ele diz... pq lendo ai parece estar meio zuado na parte do fui chifrado bla bla bla =S flw. Link para o comentário https://xtibia.com/forum/topic/46022-npc-padre-realiza-casamentos/#findComment-329652 Compartilhar em outros sites More sharing options...
raul90 0 Postado Julho 2, 2007 Share Postado Julho 2, 2007 rox demamis cara ;~ Link para o comentário https://xtibia.com/forum/topic/46022-npc-padre-realiza-casamentos/#findComment-330670 Compartilhar em outros sites More sharing options...
MarcolinoGOD 1 Postado Julho 11, 2007 Share Postado Julho 11, 2007 Ficou legal; o povo aqui gostou o problema é que uns foram testar e acabaram casando com chars de mesmo sexo e agora não sei desfazer o casamento! :lol: Parabens e continue assim... Link para o comentário https://xtibia.com/forum/topic/46022-npc-padre-realiza-casamentos/#findComment-337338 Compartilhar em outros sites More sharing options...
DeadKennedy 2 Postado Setembro 3, 2007 Share Postado Setembro 3, 2007 (editado) @albert josé É a globalização: casamentos g.a.y(pq n pode falar isso?) até em Ots xD auhsauhsuashu -------------------- @Topic legl msm, jah usei no mtu ot quando era 7.8 Editado Setembro 4, 2007 por KingCPI Link para o comentário https://xtibia.com/forum/topic/46022-npc-padre-realiza-casamentos/#findComment-376856 Compartilhar em outros sites More sharing options...
Gabriel995 1 Postado Setembro 4, 2007 Share Postado Setembro 4, 2007 AMAGAD!!! ;D Casamento até em Server? Que que isso meu fio.. ;D Link para o comentário https://xtibia.com/forum/topic/46022-npc-padre-realiza-casamentos/#findComment-376938 Compartilhar em outros sites More sharing options...
Morpheus_ 1 Postado Setembro 4, 2007 Share Postado Setembro 4, 2007 So falta o NPC Advogado que separa o casal. Link para o comentário https://xtibia.com/forum/topic/46022-npc-padre-realiza-casamentos/#findComment-376946 Compartilhar em outros sites More sharing options...
Rato_375 1 Postado Outubro 7, 2007 Share Postado Outubro 7, 2007 cara axu que vc deveria por a versão eu cansei de pega muito scripst de varios npc muito loko e eles não fala nada vc fika como idiota la melhor especificar neh no meu mapa não funfo tentei mais se fala com npc ele naum fala nada vlw por nada Link para o comentário https://xtibia.com/forum/topic/46022-npc-padre-realiza-casamentos/#findComment-398909 Compartilhar em outros sites More sharing options...
Rato_375 1 Postado Outubro 7, 2007 Share Postado Outubro 7, 2007 bom que eu to vendo não passa de uma copia colada de outro forun que naum vo cita nome que eu ja vi e testei e nem funfo Link para o comentário https://xtibia.com/forum/topic/46022-npc-padre-realiza-casamentos/#findComment-398911 Compartilhar em outros sites More sharing options...
Master Gm Gui 0 Postado Outubro 19, 2007 Share Postado Outubro 19, 2007 Fiz tudo como você falou, mas a questão é que não funcionou, eu falo HI,oi, ola, e nada acontece... Link para o comentário https://xtibia.com/forum/topic/46022-npc-padre-realiza-casamentos/#findComment-407095 Compartilhar em outros sites More sharing options...
CleytonDelMagnatas 0 Postado Dezembro 8, 2007 Share Postado Dezembro 8, 2007 ebaaaa finalmente vo me casa =X(lol) vlws viu cara me ajudo pakas ! Link para o comentário https://xtibia.com/forum/topic/46022-npc-padre-realiza-casamentos/#findComment-435681 Compartilhar em outros sites More sharing options...
Hiami 0 Postado Janeiro 23, 2008 Share Postado Janeiro 23, 2008 Como eh issu? Aparece no nick eh??? xP Link para o comentário https://xtibia.com/forum/topic/46022-npc-padre-realiza-casamentos/#findComment-466058 Compartilhar em outros sites More sharing options...
Posts Recomendados