i will show aol saller npc
open data/npc add aol saller
and open data/npc/scripts add default
now you have aol saller npc good luck
open data/npc add aol saller
Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="data/npc/scripts/default" script="aol saller.lua" walkinterval="2000" floorchange="0">
<health now="100" max="100"/>
<look type="300" head="57" body="59" legs="40" feet="76" addons="0"/>
<parameters>
<parameter key="message_greet" value="hello |PLAYERNAME|. i sell aol,ropeand shovel. want buy say {trade}."/>
<parameter key="module_shop" value="1"/>
<parameter key="shop_buyable" value="aol,2173,10000"/>
</parameters>
</npc>
and open data/npc/scripts add default
Code:
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())
now you have aol saller npc good luck
