GustavoMajor 25 Postado Agosto 8, 2010 Share Postado Agosto 8, 2010 Galera Keria Um Npc Que Vende Todos Os Addons 8.60 por 5k e 10k PLX SE ALGUEM ME ARRUMAR FIKO GRATO xD Link para o comentário Compartilhar em outros sites More sharing options...
0 SummonedOwl 2 Postado Agosto 8, 2010 Share Postado Agosto 8, 2010 Bom Enigman , Uso esse script para meu Otserv , Acho qui servirá á você , espero ! local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) 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 function buyAddons(cid, message, keywords, parameters, node) --TODO: buyAddons function in modules.lua if(not npcHandler:isFocused(cid)) then return false end local addon = parameters.addon local cost = parameters.cost local premium = (parameters.premium ~= nil and parameters.premium) if isPlayerPremiumCallback == nil or (isPlayerPremiumCallback(cid) and premium) then if doPlayerRemoveMoney(cid, cost) then doPlayerAddAddons(cid, addon) npcHandler:say('There, you are now able to use all addons!', cid) else npcHandler:say('Sorry, you do not have enough money.', cid) end else npcHandler:say('I only serve customers with premium accounts.', cid) end keywordHandler:moveUp(1) return true end local node1 = keywordHandler:addKeyword({'first addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to buy the first addons set for 5000 gold coins?'}) node1:addChildKeyword({'yes'}, buyAddons, {addon = 1, cost = 5000, premium = true}) node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, moveup = 1, text = 'Too expensive, eh?'}) local node2 = keywordHandler:addKeyword({'second addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Would you like to buy the second addons set for 10000 gold coins?'}) node2:addChildKeyword({'yes'}, buyAddons, {addon = 2, cost = 10000, premium = true}) node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, moveup = 1, text = 'Too expensive, eh?'}) keywordHandler:addKeyword({'addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell the first addons set for 5000 gold coins and the second addons set for 10000 gold coins.'}) npcHandler:addModule(FocusModule:new()) Link para o comentário Compartilhar em outros sites More sharing options...
0 comedinhasss 234 Postado Agosto 8, 2010 Share Postado Agosto 8, 2010 (editado) @SummonedOwl... não é isso não... @Enigman... Na pasta data\lib\000-constant.lua: Procure maleOutfits = {128, 129, 130, 131, 132, 133, 134, 143, 144, 145, 146, 151, 152, 153, 154, 251, 268, 273, 278, 289, 325, 328, 335} femaleOutfits = {136, 137, 138, 139, 140, 141, 142, 147, 148, 149, 150, 155, 156, 157, 158, 252, 269, 270, 279, 288, 324, 329, 336} Subistitua por: maleOutfits = {128, 129, 130, 131, 132, 133, 134, 143, 144, 145, 146, 151, 152, 153, 154, 251, 268, 273, 278, 289, 325, 328, 335, 367} femaleOutfits = {136, 137, 138, 139, 140, 141, 142, 147, 148, 149, 150, 155, 156, 157, 158, 252, 269, 270, 279, 288, 324, 329, 336, 366} Só mudar isso que irá liberar o dos addons novos... By: http://www.xtibia.co...tserv-para-860/ Editado Agosto 8, 2010 por comedinhasss Link para o comentário Compartilhar em outros sites More sharing options...
0 GustavoMajor 25 Postado Agosto 8, 2010 Autor Share Postado Agosto 8, 2010 Comedinhasss Nao é Os Addons e sim O Npc Que Vende Eles Por 5k first e 10k o second Vlw @SummonedOwl... Vo ver se vai funcionar mas esse npc q vc me passo nao é por items não né?? VLW AEW GALERA FUNCIONOU O DE VCS DOIS FIRMEZA VLW PELA AJUDA Podem Fechar Este Topico VLW @Comedinhasss e @SummonedOwl... Link para o comentário Compartilhar em outros sites More sharing options...
0 comedinhasss 234 Postado Agosto 8, 2010 Share Postado Agosto 8, 2010 @Enigman.. Então... esse é o code para aparecer junto ao npc... Ele pega a configuração de lá... Link para o comentário Compartilhar em outros sites More sharing options...
0 GustavoMajor 25 Postado Agosto 8, 2010 Autor Share Postado Agosto 8, 2010 Hummm..... Vlw..... Comedinhasss E O Outro Cara xD Agora Ot fIKA ROX SEM ADDON DOLL Agora eu tenho uma duvida em questão do ot fikar caindo sozn o executavel fika fechando sozinho nao sei o por que ' Link para o comentário Compartilhar em outros sites More sharing options...
0 comedinhasss 234 Postado Agosto 8, 2010 Share Postado Agosto 8, 2010 (editado) Deve ser algum erro de alguma função que o player faz e sobrecarrega o ot e faz cair... ou até mesmo uma que solta de tempo em tempo que sobrecarrega o ot e faz cair... Bom o pedido principal foi atendido... //Reportado... Editado Agosto 8, 2010 por comedinhasss Link para o comentário Compartilhar em outros sites More sharing options...
0 GustavoMajor 25 Postado Agosto 8, 2010 Autor Share Postado Agosto 8, 2010 FMZ vlw Link para o comentário Compartilhar em outros sites More sharing options...
0 SynGame 2 Postado Agosto 20, 2010 Share Postado Agosto 20, 2010 não funcionou Link para o comentário Compartilhar em outros sites More sharing options...
Pergunta
GustavoMajor 25
Galera Keria Um Npc Que Vende Todos Os Addons 8.60 por 5k e 10k
PLX SE ALGUEM ME ARRUMAR FIKO GRATO xD
Link para o comentário
Compartilhar em outros sites
8 respostass a esta questão
Posts Recomendados