MaxxJuba 4 Postado Julho 21, 2010 Share Postado Julho 21, 2010 Galera sera q NINGUÉM vai falar como casar? ¬¬" O padre tá com Bugs velho.. Alguem dá um help aew! Link para o comentário https://xtibia.com/forum/topic/14885-npc-casamento/page/4/#findComment-909633 Compartilhar em outros sites More sharing options...
HeartBreak 26 Postado Julho 22, 2010 Share Postado Julho 22, 2010 script antigo , mehor usar um married system novo , por isso deve ter BUGS Link para o comentário https://xtibia.com/forum/topic/14885-npc-casamento/page/4/#findComment-909704 Compartilhar em outros sites More sharing options...
MaxxJuba 4 Postado Julho 22, 2010 Share Postado Julho 22, 2010 script antigo , mehor usar um married system novo , por isso deve ter BUGS Vc pode me passar esse novo sistem? Link para o comentário https://xtibia.com/forum/topic/14885-npc-casamento/page/4/#findComment-909741 Compartilhar em outros sites More sharing options...
masquente 15 Postado Julho 22, 2010 Share Postado Julho 22, 2010 EU ADOREI COMO VC ENSINOU. E QUERO APROVEITAR E FALAR PARA ENTRAREM NO MEU OT. É MUITO ROX. O SITE DO OT É: http://strikerats.servegame.com:8090/?subtopic=accountmanagement FAÇA A SUA CONTA E DEPOIS ENTRE COM O IP: strikerats.servegame.com FALE COM A GOD TEMPESTADE. ABRAÇOS E VALEU Amigo, anuncie na pagina de Anúncios. Quanto ao System, tá muito bom, só que ainda prefiro o system das runas que uso no meu OTServ. Link para o comentário https://xtibia.com/forum/topic/14885-npc-casamento/page/4/#findComment-909875 Compartilhar em outros sites More sharing options...
douguera 18 Postado Julho 24, 2010 Share Postado Julho 24, 2010 parabens bom de mais o npc =] Link para o comentário https://xtibia.com/forum/topic/14885-npc-casamento/page/4/#findComment-911291 Compartilhar em outros sites More sharing options...
masquente 15 Postado Julho 26, 2010 Share Postado Julho 26, 2010 O Padre tá lotado de bugs e eu resolvi alguns fazendo assim: Ja que meu OT tem sistema de casamento com RUNAS, eu fiz assim: o Padre vende as runas por 1GP. Os players acharam bem 'rox'. Se quiser eu posso disponibilizar o script de Runas de Casamento. PS: Meu ot é 8.54. Link para o comentário https://xtibia.com/forum/topic/14885-npc-casamento/page/4/#findComment-912111 Compartilhar em outros sites More sharing options...
jagua88 0 Postado Novembro 4, 2011 Share Postado Novembro 4, 2011 posta ae, achei bem interessante =D Link para o comentário https://xtibia.com/forum/topic/14885-npc-casamento/page/4/#findComment-1127694 Compartilhar em outros sites More sharing options...
grigacuin 15 Postado Novembro 5, 2011 Share Postado Novembro 5, 2011 Muito bom ainda nao testei mais irei...( o vicio e tanto que to no celular kkk) Tambem rachei da parte da ##### Parabens... EDIT~ Li o script e as unicas coisas que voce preacisa falar É o Hi Link para o comentário https://xtibia.com/forum/topic/14885-npc-casamento/page/4/#findComment-1128509 Compartilhar em outros sites More sharing options...
HannahHelenaTei 1 Postado Novembro 8, 2011 Share Postado Novembro 8, 2011 (editado) achei bem interessante, vou ver se tem bugs, como falaram ae em cima ^^^^ é antigo ... espero que funfe *-* Edit@ Não funfo, o .xml esta no formato errado ... alguém por favor, pode postar o novo ????? Editado Novembro 8, 2011 por Princeziin Link para o comentário https://xtibia.com/forum/topic/14885-npc-casamento/page/4/#findComment-1129628 Compartilhar em outros sites More sharing options...
grigacuin 15 Postado Novembro 10, 2011 Share Postado Novembro 10, 2011 (editado) =-= NPC <?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>[/code] =-= SCRIPT do NPC 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 Lembrando que eu só copiei para postar para @Princeziin Editado Novembro 10, 2011 por Viciadorlz Link para o comentário https://xtibia.com/forum/topic/14885-npc-casamento/page/4/#findComment-1130598 Compartilhar em outros sites More sharing options...
LucasCastro 9 Postado Fevereiro 27, 2012 Share Postado Fevereiro 27, 2012 (editado) O que Tenhu que falar para casar !! Não sou advinho ! kk' ;D Vlw's aguardando resposta! Editado Fevereiro 27, 2012 por LucasCastro Link para o comentário https://xtibia.com/forum/topic/14885-npc-casamento/page/4/#findComment-1206841 Compartilhar em outros sites More sharing options...
Daanielziinho 0 Postado Agosto 23, 2012 Share Postado Agosto 23, 2012 Estaa me dando esse erro quando falo "HI" Lua Script Error: [NPC interface]data/npc/scripts/padre.lua: onCreatureSay data/npc/scripts/padre.lua:79: attempt to call global 'isPromoted' <a nil value> Link para o comentário https://xtibia.com/forum/topic/14885-npc-casamento/page/4/#findComment-1322685 Compartilhar em outros sites More sharing options...
testepaulinho 0 Postado Novembro 9, 2012 Share Postado Novembro 9, 2012 Queria que todos pudessem se casar mais fosse cobrado um valor tem como fazer isso pra mim ???? na espera ! " CAMBIO DESLIGO " Link para o comentário https://xtibia.com/forum/topic/14885-npc-casamento/page/4/#findComment-1383517 Compartilhar em outros sites More sharing options...
Posts Recomendados