• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

<request> aol seller

dediol

New Member
Joined
Apr 15, 2008
Messages
37
Reaction score
0
Location
Belgium
Hello,

Im new to this ot making and im wondering if somebody could help me with a NCP thats sells amulet of loss and some other rings :) But mainly aol. IF possible could you add a tutorial how to add it in my serv ;)

kind regards,
 
5 min writes xDD

Eremo.XML

PHP:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Eremo" script="data/npc/scripts/aol.lua" autowalk="1" floorchange="0">
	<health now="100" max="100"/>
	<look type="142" head="57" body="59" legs="40" feet="76" addons="0"/>
	<parameters>
		<parameter key="module_shop" value="1"/>
		<parameter key="shop_buyable" value="amulet of loss,2173,30000"/>
	</parameters>
</npc>


and aol.lua


PHP:
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())


hehe
 
Back
Top Bottom