OASIDOASIDoASId 0 Postado Janeiro 31, 2008 Share Postado Janeiro 31, 2008 (editado) o Topico postado O Addon De Blessing foi este <a href="http://www.xtibia.com/forum/index.php?showtopic=46229" target="_blank">http://www.xtibia.com/forum/index.php?showtopic=46229</a> Postado Por ArcavieR ................ COmo ele TInha Dito O npc Estava danduh Erro Na Hora de COnferiR c o YPC Tinha Ou nao o Bless Bom Dei Uma Arrumadinha e Fiz Mais q ISsuh Colokei Todos Os 5 Npc de Bless em apenas UM e Em Vez De Falar o nome Do Bless Q eh um saco Eh Soh falar Hi bless1,bless2.bless3.bless4.bless5 ProNTUH POde Reparar q na hora q vc falar bless1 ele Pergunta apra vc Voce ker emsmo comprar "nome do bless" por 20k? Dah apra Ver Q n eh o MEsmo bless instalado No Bugs Please xDDDD Chega De COnvercar Vamos Ao Trabalho em data/npc/script abra qualquer .lua e adicione istuh (salve como todos.lua) 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 function creatureSayCallback(cid, type, msg) -- Place all your code in here. Remember that hi, bye and all that stuff is already handled by the npcsystem, so you do not have to take care of that yourself. if(npcHandler.focus ~= cid) then return false end if msgcontains(msg, 'bless') then selfSay('I sell the \"Spiritual Shielding\" Blessing.') ------------------------------------------------ bless ------------------------------------------------ elseif msgcontains(msg, 'bless1') or msgcontains(msg, 'spiritual shielding') then if isPremium(cid) then selfSay('Do you want to buy the Spiritual Shielding Blessing for 20k?') talk_state = 1 else selfSay('Sorry, you need a premium account to get bless.') talk_state = 0 end elseif msgcontains(msg, 'bless2') or msgcontains(msg, 'spark of the phoenix') then if isPremium(cid) then selfSay('Do you want to buy the Spark of the Phoenix Blessing for 20k?') talk_state = 1 else selfSay('Sorry, you need a premium account to get bless.') talk_state = 0 end elseif msgcontains(msg, 'bless3') or msgcontains(msg, 'embrace of tibia') then if isPremium(cid) then selfSay('Do you want to buy the Embrace of Tibia Blessing for 20k?') talk_state = 1 else selfSay('Sorry, you need a premium account to get bless.') talk_state = 0 end elseif msgcontains(msg, 'bless4') or msgcontains(msg, 'fire of the suns') then if isPremium(cid) then selfSay('Do you want to buy the Fire of the Suns Blessing for 20k?') talk_state = 1 else selfSay('Sorry, you need a premium account to get bless.') talk_state = 0 end elseif msgcontains(msg, 'bless5') or msgcontains(msg, 'wisdom of solitude') then if isPremium(cid) then selfSay('Do you want to buy the Wisdom of Solitude Blessing for 20k?') talk_state = 1 else selfSay('Sorry, you need a premium account to get bless.') talk_state = 0 end ------------------------------------------------ confirm yes ------------------------------------------------ elseif msgcontains(msg, 'yes') and talk_state == 1 then talk_state = 0 if doPlayerRemoveMoney(cid,20000) == 1 then selfSay('Now the gods blessed you.') doPlayerAddBlessing(cid,1) else selfSay('Sorry, you dont have enough money.') end elseif msgcontains(msg, 'yes') and talk_state == 1 then talk_state = 0 if doPlayerRemoveMoney(cid,20000) == 1 then selfSay('Now the gods blessed you.') doPlayerAddBlessing(cid,2) else selfSay('Sorry, you dont have enough money.') end elseif msgcontains(msg, 'yes') and talk_state == 1 then talk_state = 0 if doPlayerRemoveMoney(cid,20000) == 1 then selfSay('Now the gods blessed you.') doPlayerAddBlessing(cid,3) else selfSay('Sorry, you dont have enough money.') end elseif msgcontains(msg, 'yes') and talk_state == 1 then talk_state = 0 if doPlayerRemoveMoney(cid,20000) == 1 then selfSay('Now the gods blessed you.') doPlayerAddBlessing(cid,4) else selfSay('Sorry, you dont have enough money.') end elseif msgcontains(msg, 'yes') and talk_state == 1 then talk_state = 0 if doPlayerRemoveMoney(cid,20000) == 1 then selfSay('Now the gods blessed you.') doPlayerAddBlessing(cid,5) else selfSay('Sorry, you dont have enough money.') end ------------------------------------------------ confirm no ------------------------------------------------ elseif msgcontains(msg, 'no') and (talk_state >= 1 and talk_state <= 2) then selfSay('Ok then.') talk_state = 0 end -- Place all your code in here. Remember that hi, bye and all that stuff is already handled by the npcsystem, so you do not have to take care of that yourself. return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) agora em data/npc abra qualquer xml lah com o bloko de notas e adicione isto(salve como Bless todos.xml) <?xml version="1.0"?> <npc name="Bless Todos" script="data/npc/scripts/todos.lua" access="1" lookdir="2"> <mana now="800" max="800"/> <health now="200" max="200"/> <look type="266" head="114" body="113" legs="113" feet="113"/> </npc> Tah feiTo xD..C kISer Add o npc em seu Mapeditor vai na pasta do mapeditor abra o xml creatures com o bloko de notas e adicione estah linha <creature looktype="266" name="Bless Todos" head="123" body="123" legs="123" feet="21" addons="3" type="npc"/> FeiTo Creditos 70% para o Arcavier POr Fazer O NPC 30% para mim por arrumar juntar Entre OUtras COisinhas q n tinha Flws abrAco! Editado Janeiro 31, 2008 por AOSIDoasiosadsa Link para o comentário https://xtibia.com/forum/topic/75865-bless/ Compartilhar em outros sites More sharing options...
OASIDOASIDoASId 0 Postado Janeiro 31, 2008 Autor Share Postado Janeiro 31, 2008 6 PEssoas Ajah viraum e Nguem ala NAda =X ComenTeM PLease ==) Link para o comentário https://xtibia.com/forum/topic/75865-bless/#findComment-471512 Compartilhar em outros sites More sharing options...
Malzbier 0 Postado Janeiro 31, 2008 Share Postado Janeiro 31, 2008 meu caro eu testei aki e a bless n fez nada so gasto a grana dos players e continuo perdendo a mesma coisa sem bless Link para o comentário https://xtibia.com/forum/topic/75865-bless/#findComment-471590 Compartilhar em outros sites More sharing options...
OASIDOASIDoASId 0 Postado Janeiro 31, 2008 Autor Share Postado Janeiro 31, 2008 Bom meu caro AMiGo Eu AjeiTei O BLess Comom estava na script Colokei os 5* NO kso Juntos.. aki Funciono De Boua jaH ns ei o problema causado ai =) abracos Link para o comentário https://xtibia.com/forum/topic/75865-bless/#findComment-471627 Compartilhar em outros sites More sharing options...
Bozoson 0 Postado Fevereiro 2, 2008 Share Postado Fevereiro 2, 2008 Pelo jeito alguns OTServers n tem o sistema de bless, q nem o q estou usando, ele adiciona no players as 5 blesses, mas elas n funcionam =S Link para o comentário https://xtibia.com/forum/topic/75865-bless/#findComment-472837 Compartilhar em outros sites More sharing options...
Strike_Sky 0 Postado Fevereiro 8, 2008 Share Postado Fevereiro 8, 2008 Mto bom msm ! Link para o comentário https://xtibia.com/forum/topic/75865-bless/#findComment-476491 Compartilhar em outros sites More sharing options...
michelpm1 0 Postado Março 1, 2008 Share Postado Março 1, 2008 Simplesmente perfeito serviu pra mim funfou 100% ;P vlwzao ae Link para o comentário https://xtibia.com/forum/topic/75865-bless/#findComment-489684 Compartilhar em outros sites More sharing options...
Xnone 0 Postado Março 1, 2008 Share Postado Março 1, 2008 aki funfo tb axo que vcs devem ter feito alguma coisa errada pra naum funfa vlw kara :smile_positivo: Link para o comentário https://xtibia.com/forum/topic/75865-bless/#findComment-489765 Compartilhar em outros sites More sharing options...
Kelvynvianna 0 Postado Março 7, 2008 Share Postado Março 7, 2008 massa... Link para o comentário https://xtibia.com/forum/topic/75865-bless/#findComment-493499 Compartilhar em outros sites More sharing options...
GuTOcS 0 Postado Março 9, 2008 Share Postado Março 9, 2008 (editado) hehe vlw q BOm q v6 gostarraum x) Kem Fez esse Npc Fui E eu Sou o AOSidAOSDiOASID Eh q eu mUdei De NiCk BOm n tem nada V Neah AOSDIAOSIdoaSD FIK FeIU enTaum Fiz Essa AKi Vlws =**! Editado Março 9, 2008 por GuTOcS Link para o comentário https://xtibia.com/forum/topic/75865-bless/#findComment-495134 Compartilhar em outros sites More sharing options...
FAG10 0 Postado Março 13, 2008 Share Postado Março 13, 2008 Mtu Bom ;D Link para o comentário https://xtibia.com/forum/topic/75865-bless/#findComment-497363 Compartilhar em outros sites More sharing options...
Felipe14 0 Postado Agosto 2, 2008 Share Postado Agosto 2, 2008 Mto Bom, Ta em um script só, Mens npcs do mapa! Vlws =) //Flp Link para o comentário https://xtibia.com/forum/topic/75865-bless/#findComment-595534 Compartilhar em outros sites More sharing options...
leoloko12 108 Postado Agosto 14, 2008 Share Postado Agosto 14, 2008 aki deu erro mano veh issu aew vlw Link para o comentário https://xtibia.com/forum/topic/75865-bless/#findComment-602862 Compartilhar em outros sites More sharing options...
Ystifler 2 Postado Agosto 19, 2008 Share Postado Agosto 19, 2008 sim..botei ..bless no meu server mais quando morro..ainda perde varios lvls.. onde bota pra perde poukos?? Link para o comentário https://xtibia.com/forum/topic/75865-bless/#findComment-605761 Compartilhar em outros sites More sharing options...
lucazlacerda 0 Postado Agosto 19, 2008 Share Postado Agosto 19, 2008 Mto bom ^^ Link para o comentário https://xtibia.com/forum/topic/75865-bless/#findComment-605762 Compartilhar em outros sites More sharing options...
Posts Recomendados