Im new to scripting and i dont know how to add more items to this script
~slade
Code:
local talk_state = 0
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
function creatureSayCallback(cid, type, msg)
if msgcontains(msg, 'demon legs') then
if getPlayerItemCount(cid,2157) >= 2 then
if doPlayerRemoveItem(cid,2157,2) == 1 then
selfSay('Here you are! .')
doPlayerAddItem(cid,2495,1)
end
else
selfSay('I am sorry then!. ')
talk_state = 0
end
elseif msgcontains(msg, 'no') then
selfSay('Ok.. Good bye then!!')
talk_state = 0
end
return true
end
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
~slade