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

Kudzu

Active Member
Joined
Apr 9, 2008
Messages
512
Reaction score
40
Location
localhost
I have error in console:
NPC System: ShopModule.onBuy - item not found on shopItems list

and my script is:
PHP:
local onBuy = function(cid, item, subType, amount, ignoreCap, inBackpacks)
	if items[item].buyPrice ~= 0 then
		doPlayerRemoveMoney(cid, amount * items[item].buyPrice)
		for i = 1, amount do
			doPlayerAddItem(cid, items[item].item_id, amount)
		end
		doNPCTalkALot(cid, 200, {"You bought "..amount.." "..items[item].realName.." for "..items[item].buyPrice * amount.." gold coins."})
	end
end

How I can fix that? TFS 0.4 dev
 
Back
Top