• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

NPC not functioning..

Hybery

New Member
Joined
Aug 8, 2013
Messages
4
Reaction score
0
Okay I am running an 8.0 Kummerack (edited Evolutions) server..
I have a problem with my NPC that is supposed to sell manarunes and uhs.
He greets me, tells me the offers but when someone types "buy second manarune"
etc he doesnt say anything, charge anything or give anything.
Codes:

LUA:
<npc name="Rune seller" script="data/npc/scripts/Rune seller.lua" autowalk="25" floorchange="0" access="5" level="1" maglevel="1">
	<health now="150" max="150"/>
	<look type="266" head="114" body="113" legs="113" feet="113" corpse="2212"/>
	<parameters>
		<parameter key="module_shop" value="1" />
		<parameter key="message_greet" value="Hello |PLAYERNAME|. Second and third manarune and UH. Second cost 200CC and third 400CC." />
		<parameter key="shop_buyable" value="second manarune,2281,2000000;second uh,2275,2000000;third manarune,2284,4000000;third uh,2276,4000000" />	
		</parameters>
</npc>

LUA:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

-- OTServ event handling functions start
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
-- OTServ event handling functions end

npcHandler:addModule(FocusModule:new())

Thank you!
 
Last edited:
Back
Top