Epic
Banned User
How can i make my Food npc sell a "green flask" ( ItemID 2009 ) for 10000gp ( 1cc ) ???
Here is the XML i use:
and here is the Script:
I really need it
Rep++ if works!
Here is the XML i use:
Code:
<npc name="Food" script="data/npc/scripts/food.lua" walkinterval="25" floorchange="0" access="3" level="1" maglevel="1">
<health now="150" max="150"/>
<look type="128" head="20" body="100" legs="50" feet="99" corpse="2212" addons="3"/>
<parameters>
<parameter key="module_shop" value="1" />
<parameter key="message_greet" value="Hello |PLAYERNAME|. I sell brown bread(4gp), ham(8gp), meat(5gp), cheese(6gp) and cookies(5gp)!" />
<parameter key="shop_buyable" value="brown bread,2691,4;ham,2671,8;;meat,2666,5;;cheese,2696,6;;cookie,2687,5;;" />
</parameters>
</npc>
and here is the Script:
Code:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
-- OTServ event handling functions start
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
-- OTServ event handling functions end
npcHandler:addModule(FocusModule:new())
I really need it
Rep++ if works!