ond
Veteran OT User
I need an NPC that can sell me keys with action ids implented!
I was thinking something like this (see script below), then use parameters (of course this script doesn't work).
If you guys have any other ideas to help me out, please just post!
P.S I'm using Avesta 0.6.3 for client version 7.6!
Thanks for now!
I was thinking something like this (see script below), then use parameters (of course this script doesn't work).
If you guys have any other ideas to help me out, please just post!
P.S I'm using Avesta 0.6.3 for client version 7.6!
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
doSetItemActionId(item.id, 3012)
npcHandler:addModule(FocusModule:new())
Thanks for now!