Tipo assim..
Criei um npc no meu ot por sistema trade e quero que ele aceitei VIP coins em vez de Gold coins.
Ele está aceitando gold coins e nao cosigo mudar isso.
Olhem o script:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="VIP Seller" script="data/npc/scripts/donations.lua" walkinterval="2000" floorchange="0">
<health now="150" max="150"/>
<look type="129" head="78" body="124" legs="123" feet="7" addons="3"/>
<parameters>
<parameter key="module_shop" value="1"/>
<parameter key="message_greet" value="Hi |PLAYERNAME|. I sell items VIP for VIP coins, say {trade}."/>
<parameter key="shop_buyable" value="Ultrax Cometta Hat,6096,100;Ultrax Cometta Armor,6095,100;Ultrax Cometta Legs,5918,100;Ultrax Cometta Boots,5462,100;Ultrax Cometta Blade,2408,100;Ultrax Cometta Axe,8925,100;Ultrax Cometta Club,2444,100;Ultrax Cometta Shield,11368,100;Ultrax Cometta Wand,2184,100;Ultrax Cometta Rod,7735,100;Ultrax Cometta Bow,8856,100;Cometta Blade,8932,50;Cometta Axe,7388,50;Cometta Club,7437,50;Cometta Bow,8858,50"/>
</parameters>
</npc>
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
npcHandler:addModule(FocusModule:new())
o ID da moeda vip é 2157
Agradeço desde já !