gorz 1 Postado Fevereiro 20, 2011 Share Postado Fevereiro 20, 2011 Gente,nao sei porque,quando alguem compra os addons no npc nao libera os addons nem do Wayfare nem do Warmaster.Alguem me ajuda ae,na pasta do xml ta assim: <?xml version="1.0" encoding="UTF-8"?> <outfits> <!-- Female outfits --> <outfit type="0" looktype="136" enabled="1" name="Citizen" premium="0"/> <outfit type="0" looktype="137" enabled="1" name="Hunter" premium="0"/> <outfit type="0" looktype="138" enabled="1" name="Mage" premium="0"/> <outfit type="0" looktype="139" enabled="1" name="Knight" premium="0"/> <outfit type="0" looktype="140" enabled="1" name="Noblewoman" premium="0"/> <outfit type="0" looktype="141" enabled="1" name="Summoner" premium="0"/> <outfit type="0" looktype="142" enabled="1" name="Warrior" premium="0"/> <outfit type="0" looktype="147" enabled="1" name="Barbarian" premium="0"/> <outfit type="0" looktype="148" enabled="1" name="Druid" premium="0"/> <outfit type="0" looktype="149" enabled="1" name="Wizard" premium="0"/> <outfit type="0" looktype="150" enabled="1" name="Oriental" premium="0"/> <outfit type="0" looktype="155" enabled="1" name="Pirate" premium="0"/> <outfit type="0" looktype="156" enabled="1" name="Assassin" premium="0"/> <outfit type="0" looktype="157" enabled="1" name="Beggar" premium="0"/> <outfit type="0" looktype="158" enabled="1" name="Shaman" premium="0"/> <outfit type="0" looktype="252" enabled="1" name="Norsewoman" premium="0"/> <outfit type="0" looktype="269" enabled="1" name="Nightmare" premium="0"/> <outfit type="0" looktype="270" enabled="1" name="Jester" premium="0"/> <outfit type="0" looktype="279" enabled="1" name="Brotherhood" premium="0"/> <outfit type="0" looktype="288" enabled="1" name="Demonhunter" premium="0"/> <outfit type="0" looktype="324" enabled="1" name="Yalaharian" premium="0"/> <outfit type="0" looktype="336" enabled="1" name="Warmaster" premium="0"/> <outfit type="0" looktype="329" enabled="1" name="Wife" premium="0"/> <outfit type="0" looktype="366" enabled="1" name="Wayfarer" premium="0"/> <!-- Male outfits --> <outfit type="1" looktype="128" enabled="1" name="Citizen" premium="0"/> <outfit type="1" looktype="129" enabled="1" name="Hunter" premium="0"/> <outfit type="1" looktype="130" enabled="1" name="Mage" premium="0"/> <outfit type="1" looktype="131" enabled="1" name="Knight" premium="0"/> <outfit type="1" looktype="132" enabled="1" name="Nobleman" premium="0"/> <outfit type="1" looktype="133" enabled="1" name="Summoner" premium="0"/> <outfit type="1" looktype="134" enabled="1" name="Warrior" premium="0"/> <outfit type="1" looktype="143" enabled="1" name="Barbarian" premium="0"/> <outfit type="1" looktype="144" enabled="1" name="Druid" premium="0"/> <outfit type="1" looktype="145" enabled="1" name="Wizard" premium="0"/> <outfit type="1" looktype="146" enabled="1" name="Oriental" premium="0"/> <outfit type="1" looktype="151" enabled="1" name="Pirate" premium="0"/> <outfit type="1" looktype="152" enabled="1" name="Assassin" premium="0"/> <outfit type="1" looktype="153" enabled="1" name="Beggar" premium="0"/> <outfit type="1" looktype="154" enabled="1" name="Shaman" premium="0"/> <outfit type="1" looktype="251" enabled="1" name="Norseman" premium="0"/> <outfit type="1" looktype="268" enabled="1" name="Nightmare" premium="0"/> <outfit type="1" looktype="273" enabled="1" name="Jester" premium="0"/> <outfit type="1" looktype="278" enabled="1" name="Brotherhood" premium="0"/> <outfit type="1" looktype="289" enabled="1" name="Demonhunter" premium="0"/> <outfit type="1" looktype="325" enabled="1" name="Yalaharian" premium="0"/> <outfit type="1" looktype="335" enabled="1" name="Warmaster" premium="0"/> <outfit type="1" looktype="328" enabled="1" name="Husband" premium="0"/> <outfit type="1" looktype="367" enabled="1" name="Wayfarer" premium="0"/> <!-- Archdemon --> <outfit type="2" looktype="12" enabled="1" name="Archdemon" premium="0"/> <!-- Elf outfits --> <outfit type="2" looktype="159" enabled="1" name="Elf" premium="0"/> <!-- Dwarf outfits --> <outfit type="2" looktype="160" enabled="1" name="Dwarf" premium="0"/> <!-- Frog outfits --> <outfit type="2" looktype="226" enabled="1" name="Frog" premium="0"/> <!-- Cult --> <outfit type="2" looktype="194" enabled="1" name="Cult" premium="0"/> <!-- Barbarians --> <outfit type="2" looktype="253" enabled="1" name="Headsplitter" premium="0"/> <outfit type="2" looktype="254" enabled="1" name="Skullhunter" premium="0"/> <outfit type="2" looktype="255" enabled="1" name="Bloodwalker" premium="0"/> <outfit type="2" looktype="264" enabled="1" name="Brutetamer" premium="0"/> </outfits> Link para o comentário Compartilhar em outros sites More sharing options...
1877799 56 Postado Fevereiro 20, 2011 Share Postado Fevereiro 20, 2011 Pode ser problema no script do npc..., tente usar este script no lugar do antigo: 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) == TRUE 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...
gorz 1 Postado Fevereiro 21, 2011 Autor Share Postado Fevereiro 21, 2011 ixi,meu script ta exatamente assim =/,mais vlw por tentar ajdar Link para o comentário Compartilhar em outros sites More sharing options...
Stigal 584 Postado Abril 19, 2018 Share Postado Abril 19, 2018 A questão neste tópico de suporte foi encerrada por falta de respostas. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta. + Caso a dúvida não tenha sido resolvida você poderá criar outro tópico solicitando ajuda. * Lembre-se que é permitido dar UP no tópico a cada 24 horas para assim o destacar e manter movimentado. Link para o comentário Compartilhar em outros sites More sharing options...
Posts Recomendados