Galera Keria Um Npc Que Vende Todos Os Addons 8.60 por 5k e 10k
PLX SE ALGUEM ME ARRUMAR FIKO GRATO xD

Galera Keria Um Npc Que Vende Todos Os Addons 8.60 por 5k e 10k
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())
att,
SummonedOwl
@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:
Bruno de Carvalho Câmara
[email protected]<script data-cfhash='f9e31' type="text/javascript"> /* */</script> / (18) 9 9640-4544
"Pesadelos? Sonhos? Calma, é apenas eu pensando em você!"
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...
Bruno de Carvalho Câmara
[email protected]<script data-cfhash='f9e31' type="text/javascript"> /* */</script> / (18) 9 9640-4544
"Pesadelos? Sonhos? Calma, é apenas eu pensando em você!"
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 '
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...
Bruno de Carvalho Câmara
[email protected]<script data-cfhash='f9e31' type="text/javascript"> /* */</script> / (18) 9 9640-4544
"Pesadelos? Sonhos? Calma, é apenas eu pensando em você!"
FMZ
vlw
não funcionou
EQUIPE SYNGAME - [ADM] Synyster [GOD] Zack
SKYPE: synyster.servegame
MSN: synyster.servegame@hotmail.com