I got an NPC which sells Bp of potions.
Check this
23:04 GM Viros on Celeria [2]: hi
23:04 Brandt: Hello, GM Viros on Celeria. Im a rune maker!
23:04 GM Viros on Celeria [2]: backpack of great mana potion
23:04 Brandt: Do you want to buy 1 Backpack of great mana potion for 2400 gold coins?
23:04 GM Viros on Celeria [2]: yes
my COnsole shows this
data/npc/lib/npcsystem/modules.lua:744: attempt to call global 'doPlayerbuyContainer' ( a nil value)
This is my NPC
Help Please ;[
Check this
23:04 GM Viros on Celeria [2]: hi
23:04 Brandt: Hello, GM Viros on Celeria. Im a rune maker!
23:04 GM Viros on Celeria [2]: backpack of great mana potion
23:04 Brandt: Do you want to buy 1 Backpack of great mana potion for 2400 gold coins?
23:04 GM Viros on Celeria [2]: yes
my COnsole shows this
data/npc/lib/npcsystem/modules.lua:744: attempt to call global 'doPlayerbuyContainer' ( a nil value)
Code:
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
local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)
shopModule:addBuyableItem({'blank'}, 2260, 10, 'blank rune')
shopModule:buyContainer({'backpack of sudden death'}, 2003, 2268, 6000, 3, 'Backpack of sudden death')
shopModule:buyContainer({'backpack of ultimate healing'}, 2002, 2273, 1000, 1, 'Backpack of ultimate healing')
shopModule:buyContainer({'backpack of intense healing'}, 1988, 2265, 300, 1, 'Backpack of intense healing')
shopModule:buyContainer({'backpack of great fire ball'}, 2000, 2304, 1000, 4, 'Backpack of great fireball')
shopModule:buyContainer({'backpack of explosion'}, 2001, 2313, 3000, 3, 'Backpack of explosion rune')
shopModule:buyContainer({'backpack of heavy magic missile'}, 1998, 2311, 700, 10, 'Backpack of heavy magic missile')
shopModule:buyContainer({'backpack of magic wall'}, 1999, 2293, 2000, 4, 'Backpack of magic wall')
shopModule:buyContainer({'backpack of fire bomb'}, 2000, 2305, 1000, 2, 'Backpack of fire bomb')
shopModule:buyContainer({'backpack of destroy fields'}, 2003, 2261, 1000, 3, 'Backpack of destroy field')
shopModule:buyContainer({'backpack of great mana potion'}, 200, 7590, 2400, 1, 'Backpack of great mana potion')
shopModule:buyContainer({'backpack of strong mana potion'}, 2003, 7589, 1600, 1, 'Backpack of strong mana potion')
shopModule:buyContainer({'backpack of mana potion'}, 2003, 7620, 1000, 1, 'Backpack of mana potion')
shopModule:buyContainer({'backpack of great health potion'}, 2003, 7591, 5000, 1, 'Backpack of great health potion')
shopModule:buyContainer({'backpack of strong health potion'}, 2003, 7588, 2200, 1, 'Backpack of strong health potion')
shopModule:buyContainer({'backpack of health potion'}, 2003, 7618, 1000, 1, 'Backpack of health potion')
npcHandler:addModule(FocusModule:new())
Help Please ;[