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

npc sell/buy problem

Makin

New Member
Joined
Sep 17, 2018
Messages
39
Solutions
1
Reaction score
2
Hello, the problem is that I cannot buy or sell the item. And there is no error in the console.
tfs 1.5

xml.
XML:
<?xml version="1.0" encoding="UTF-8"?>

<npc name="Talon Trader" script="talon.lua" walkinterval="2000" floorchange="0">
    <health now="100" max="100" />
    <look type="302" head="20" body="39" legs="45" feet="7" addons="0" />

    <parameters>
    <parameter key="module_shop" value="1" />
    <parameter key="message_greet" value="Hello, |PLAYERNAME|! I buy all talons 10 zeni each." />
    <parameter key="shop_sellable" value="talon,2151,100;" />
    </parameters>

</npc>

lau.
LUA:
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())
 

Similar threads

Back
Top