ignas1415
Senior Member
Hello this is a npc 100% by me 100% real
data/npc/script add rashid.lua
and data/npc add Rashid.xml
data/npc/script add rashid.lua
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())
and data/npc add Rashid.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Rashid" script="data/npc/scripts/rashid.lua" autowalk="1" floorchange="0">
<health now="100" max="100"/>
<look type="134" head="57" body="59" legs="40" feet="76" addons="0"/>
<parameters>
<parameter key="module_shop" value="1"/>
<parameter key="shop_buyable" value="fur boots,7457,2000;dragon scale mail,2492,40000;demon shield,2520,30000;golden armor,2466,20000;mammoth fur cape,7463,6000;medusa shield,2536,9000;steel boots,2645,30000;skull helmet,5741,40000;beholder helmet,3972,7500;ragnir helmet,7462,400;dragon slayer,7402,15000;wyvern fang,7408,1500;war axe,2454,9000;sapphire hammer,7437,7000;dragonbone staff,7430,3000;diamond sceptre,7387,3000;mammoth whopper,7381,300"/>
</parameters>
</npc>
Last edited by a moderator: