• 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!

need the new npc system (trade,pricate chanel ,,etc)

lord anthor

New Member
Joined
Oct 4, 2008
Messages
17
Reaction score
0
i need the new npc system to my ot

because my npc doesnt open the private chanel =s

34ywawz.jpg
 
You dont have the default ones?

Then here there is one default from TFS:

Donald.xml


PHP:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Donald" script="data/npc/scripts/default.lua" walkinterval="2000" floorchange="0">
	<health now="150" max="150"/>
	<look type="128" head="20" body="100" legs="50" feet="99" corpse="2212"/>
	<parameters>
		<parameter key="module_shop" value="1"/>
		<parameter key="message_greet" value="Hello |PLAYERNAME|. I sell ham, meat, carrots, apples, brown breads, brown mushrooms and eggs (everything for 8 gold coins)!"/>
		<parameter key="shop_buyable" value="brown bread,2691,8;ham,2671,8;carrot,2684,8;meat,2666,8;apple,2674,8;brown mushroom,2789,8;egg,2695,8"/>
	</parameters>
</npc>

default.lua
(this one goes in scripts)

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())
 
Back
Top