local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)
Yea i doDo you happen to have this line in the script? Also, it happens with every npc?
Code:local shopModule = ShopModule:new() npcHandler:addModule(shopModule)
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
local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)
shopModule:addBuyableItem({'rat'}, 2461, 200, 1, 'rat')
shopModule:addBuyableItem({'frog'}, 2482, 300, 1, 'frog')
function creatureSayCallback(cid, type, msg)
if not npcHandler:isFocused(cid) then
return false
end
return true
end
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
No errors no nothing but it shouldn't be any error because i cant press buy so it wont call this buy function. Mine is unmodified "pretty much" thinks i changed was with message delay fix thats it. So if i replace it i will lose my changes which is pretty important to me.no error on console mate? Try replacing your libs folder inside data/npc with an unmodified one
Lul it looks like with admin you cant buyRight, test if this problem occurs with normal character.
Lul it looks like with admin you cant buythanks i would never though about this. Probably next time i need to test everything with normal character
Nah its okay now i know it works. With admin i can /i name, amountThe problem is because in ADM character "capacity = 0" you cannot buy, maybe you can make some changes to ignore if admin, if you want to buy with admin anyway you can right click and select "ignore capacity"