Mm problem dość dziwny, chcę dodać do NPC bolkadę, że musi najpierw wykonać quest
Kod:
queststatus = getPlayerStorageValue(cid,4000)
Kod:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
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({'red diamond pad'}, 7112, 100000, 1, 'red diamond pad')
shopModule:addBuyableItem({'blue diamond pad'}, 7113, 100000, 1, 'blue diamond pad')
shopModule:addBuyableItem({'pink diamond pad'}, 7114, 100000, 1, 'pink diamond pad')
shopModule:addBuyableItem({'green diamond pad'}, 7115, 100000, 1, 'green diamond pad')
shopModule:addBuyableItem({'bright pink diamond pad'}, 7116, 100000, 1, 'bright pink diamond pad')
shopModule:addBuyableItem({'bright green diamond pad'}, 7117, 100000, 1, 'bright green diamond pad')
shopModule:addBuyableItem({'gold diamond pad'}, 7118, 100000, 1, 'gold diamond pad')
shopModule:addBuyableItem({'bright blue diamond pad'}, 7119, 100000, 1, 'bright blue diamond pad')
shopModule:addBuyableItem({'black diamond pad'}, 7125, 100000, 1, 'black diamond pad')
shopModule:addBuyableItem({'pink pad'}, 7120, 100000, 1, 'pink pad')
shopModule:addBuyableItem({'blue pad'}, 7126, 100000, 1, 'blue pad')
shopModule:addBuyableItem({'green pad'}, 7122, 100000, 1, 'green pad')
shopModule:addBuyableItem({'yellow pad'}, 7123, 100000, 1, 'yellow pad')
shopModule:addBuyableItem({'red pad'}, 7124, 100000, 1, 'red pad')
shopModule:addBuyableItem({'bright blue pad'}, 7126, 100000, 1, 'bright blue pad')
shopModule:addBuyableItem({'gaud'}, 6973, 250000, 1, 'gaud')
shopModule:addBuyableItem({'bat decoration'}, 7519, 250000, 1, 'bat decoration')
shopModule:addBuyableItem({'pink table'}, 7507, 1000000, 1, 'pink table')
shopModule:addBuyableItem({'orange table'}, 7508, 1000000, 1, 'orange table')
shopModule:addBuyableItem({'black table'}, 7509, 1000000, 1, 'black table')
shopModule:addBuyableItem({'yellow table'}, 7510, 1000000, 1, 'yellow table')
shopModule:addBuyableItem({'ice table'}, 7141, 1000000, 1, 'ice table')
shopModule:addBuyableItem({'red table'}, 7141, 1000000, 1, 'red table')
shopModule:addBuyableItem({'blue table'}, 7142, 1000000, 1, 'blue table')
shopModule:addBuyableItem({'bright blue table'}, 7140, 1000000, 1, 'bright blue table')
shopModule:addBuyableItem({'green table'}, 7143, 1000000, 1, 'green table')
npcHandler:addModule(FocusModule:new())
Zakładki