oualidboy1996
Member
- Joined
- Aug 4, 2009
- Messages
- 60
- Reaction score
- 6
He buys most addon items for 25 platinum coins each
He sells most addon items for 5 cc each so not everyone will buy it immidiatly.
He dosnt sell items like ferumbras hat/dragon claw/orshabaal's brain~
He does buy items like ferumbras hat/dragon claw/orshabaal's brain~ (50cc each)
data/npc/Ahmad.xml
data/npc/scripts/loot
He sells most addon items for 5 cc each so not everyone will buy it immidiatly.
He dosnt sell items like ferumbras hat/dragon claw/orshabaal's brain~
He does buy items like ferumbras hat/dragon claw/orshabaal's brain~ (50cc each)
data/npc/Ahmad.xml
HTML:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Ahmad" script="data/npc/scripts/loot.lua" walkinterval="2000" floorchange="0">
<health now="150" max="150"/>
<look type="146" head="75" body="115" legs="125" feet="85" addons="3"/>
<parameters>
<parameter key="module_shop" value="1"/>
<parameter key="message_greet" value="Hello |PLAYERNAME|. Have you visited my brother Rashid?? He also sells/buys rare items like me! Take a look just say trade."/>
<parameter key="shop_sellable" value="huge chunk of crude iron,5892,10000;enchanted chicken wing,5891,10000;piece of draconian steel,5888,10000;piece of hell steel,5888,10000;piece of royal steel,5887,10000;warrior's sweat,5885,10000;fighting spirit,5884,10000;sniper gloves,5875,10000;soul stone,5809,500000;orshabaal's brain,5808,500000;demonic essence,6500,2500;peg leg,6126,2500;demon horn,5954,2500;red dragon leather,5948,2500;lizard leather,5876,2500;lizard leather,5876,2500;giant spider silk,5879,2500;iron ore,5880,2500;lizard scale,5881,2500;red dragon scale,5882,2500;ape fur,5883,2500;spool of yarn,5881,25000;chicken feather,5890,2500;perfect behemoth fang,5893,2500;bat wing,5894,2500;fish fin,5895,2500;bear paw,5896,2500;wolf paw,5897,2500;turtle shell,5899,2500;honeycomb,5902,2500;ferumbras' hat,5903,500000;magic sulphur,5904,7500;vampire dust,5905,2500;demon dust,5906,2500;dragon claw,5919,500000;green dragon scale,5920,2500;holy orchid,5922,2500;hardend bones,5925,2500;behemoth claw,5930,2500;hook,6097,2500;eye patch,6098,2500;brutus bloodbeard's hat,6099,250000;lethal lissy's shirt,6100,250000;ron the ripper's sabre,6101,250000;deadeye devious' eye patch,6102,250000;white piece of cloth,5909,2500;green piece of cloth,5910,2500;red piece of cloth,5911,2500;blue piece of cloth,5912,2500;brown piece of cloth,5913,2500;yellow piece of cloth,5914,2500;morgaroth's heart,5943,500000;mermaid comb,5945,500000;"/>
<parameter key="shop_buyable" value="huge chunk of crude iron,5892,100000;enchanted chicken wing,5891,100000;piece of draconian steel,5888,100000;piece of hell steel,5888,100000;piece of royal steel,5887,100000;warrior's sweat,5885,100000;fighting spirit,5884,100000;sniper gloves,5875,100000;demonic essence,6500,50000;peg leg,6126,50000;simon the beggar's favorite staff,6107,200000;lottery ticket,5957,200000;demon horn,5954,50000;red dragon leather,5948,50000;green dragon leather,5877,50000;lizard leather,5876,50000;minotaur leather,5878,50000;giant spider silk,5879,50000;iron ore,5880,50000;lizard scale,5881,2500;red dragon scale,5882,50000;ape fur,5883,50000;spool of yarn,5881,500000;chicken feather,5890,50000;perfect behemoth fang,5893,50000;bat wing,5894,50000;fish fin,5895,50000;bear paw,5896,50000;wolf paw,5897,50000;turtle shell,5899,50000;honeycomb,5902,50000;magic sulphur,5904,150000;vampire dust,5905,50000;demon dust,5906,50000;green dragon scale,5920,50000;holy orchid,5922,50000;hardend bones,5925,50000;behemoth claw,5930,50000;hook,6097,50000;eye patch,6098,50000;white piece of cloth,5909,50000;green piece of cloth,5910,50000;red piece of cloth,5911,50000;blue piece of cloth,5912,50000;brown piece of cloth,5913,50000;yellow piece of cloth,5914,50000"/>
</parameters>
</npc>
data/npc/scripts/loot
HTML:
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())
Last edited: