Hello, How do i add things to the djinn?
NPCS.
NPCS/SCRIPTS.
Thanks.
NPCS.
<?xml version="1.0"?>
<npc name="Daromir" script="data/npc/scripts/djinnsell.lua" autowalk="1" access="3">
<look type="133" head="14" body="52" legs="45" feet="116" />
<parameters>
<parameter key="message_greet" value="Welcome |PLAYERNAME|, I buy mostly all rare weapons and armor." />
<parameter key="message_farewell" value="Come back soon." />
<parameter key="module_shop" value="1" />
<parameter key="shop_sellable" value="crown armor,2487,9000;knight armor,2476,5000;golden armor,2466,20000;plate armor,2463,500;amulet of loss,2173,10000;knight legs,2477,8500;crown legs,2488,16000;plate legs,2647,500;fire sword,2392,7500;giant sword,2393,28000;spike sword,2383,300;bright sword,2407,25000;ice rapier,2396,1500;haunted blade,7407,200000;dragon lance,2414,21000;knight axe,2430,2000;fire axe,2432,18000;war hammer,2391,2000;skull staff,2436,6500;crystal mace,2445,17000;sapphire hammer,7437,32000;boots of haste,2195,31000;vampire shield,2534,12000;medusa shield,2536,10000;demon shield,2520,28000;crown shield,2519,7500;dragon shield,2516,4000;guardian shield,2515,3000;mastermind shield,2514,100000;devil helmet,2462,1600;warrior helmet,2475,5500;crown helmet,2491,2500;crusader helmet,2497,7000;royal helmet,2498,25000;mystic turban,2663,2450;blue robe,2656,10500;dragon scale mail,2492,48000;golden legs,2470,100000" />
</parameters>
</npc>
NPCS/SCRIPTS.
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandlernCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandlernCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandlernCreatureSay(cid, type, msg) end
function onThink() npcHandlernThink() end
npcHandler:addModule(FocusModule:new())
Thanks.