Tá ai o Npc :
>> Vá na pasta data/npc e copie qualquer arquivo xml e apague o conteúdo dentro dele e renomeio para Vendendor de Potions e adicione isso ao conteúdo :
<npc name="Vendendor de Potions" script="data/npc/scripts/bpdepotions.lua" walkinterval="2000" floorchange="0">
<health now="100" max="100"/>
<look type="145" head="94" body="114" legs="94" feet="94" addons="3"/>
<parameters>
<parameter key="message_greet" value="Ola |PLAYERNAME|. Eu vendo potions. Diga {trade}."/>
<parameter key="message_decline" value="Is |TOTALCOST| gold coins too much for you? Get out of here!"/>
</parameters>
</npc>
>> Depois va na pasta data/npc/script e copie qualquer arquivo do bloco de notas e renomeio para bpdepotions e depois apague seu conteúdo e adicione isso :
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
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
local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)
shopModule:addBuyableItemContainer({'bp slhp'}, 2000, 8704, 400, 1, 'backpack of small health potions')
shopModule:addBuyableItemContainer({'bp hp'}, 2000, 7618, 900, 1, 'backpack of health potions')
shopModule:addBuyableItemContainer({'bp mp'}, 2001, 7620, 1000, 1, 'backpack of mana potions')
shopModule:addBuyableItemContainer({'bp shp'}, 2000, 7588, 2000, 1, 'backpack of strong health potions')
shopModule:addBuyableItemContainer({'bp smp'}, 2001, 7589, 1600, 1, 'backpack of strong mana potions')
shopModule:addBuyableItemContainer({'bp ghp'}, 2000, 7591, 3800, 1, 'backpack of great health potions')
shopModule:addBuyableItemContainer({'bp gmp'}, 2001, 7590, 2400, 1, 'backpack of great mana potions')
shopModule:addBuyableItemContainer({'bp gsp'}, 1999, 8472, 3800, 1, 'backpack of great spirit potions')
shopModule:addBuyableItemContainer({'bp uhp'}, 2000, 8473, 6200, 1, 'backpack of ultimate health potions')
shopModule:addBuyableItemContainer({'bp ap'}, 2002, 8474, 2000, 1, 'backpack of antidote potions')
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
Se seu pedido tiver sido sanado post aqui.
Espero ter ajudado.
Atensiosamente, Darkanso.




info
Grupo: Campones
Registrado: 23/12/07
Posts: 15
Reputação: 0
As alavancas são boas mas nada melhor q o sistema do npc de comprar por bps. Pq com as alavancas os players podem jogar varios items emcima impossibilitando de alguem comprar as runas ou pots...Então se puderem me ajudar..
Grato