Hi, im getting this error when i load my server up with this talkaction
the error i get is
Any ideas?
Lua:
--- Config ---
local getdwarf = getPlayerStorageValue(cid, 3000)
local getdragon = getPlayerStorageValue(cid, 3001)
local getdemodras = getPlayerStorageValue(cid, 3002)
local getwyrm = getPlayerStorageValue(cid, 3003)
local getwarlock = getPlayerStorageValue(cid, 3004)
local getdemon = getPlayerStorageValue(cid, 3005)
--- End config ---
function onSay(cid, words, param)
if isPlayer(cid) then
if getPlayerStorageValue(cid, 3001) == -1 and getPlayerStorageValue(cid, 3000) >= 1 then
doPlayerPopupFYI(cid, "Quest\n\nMonster to kill - Dwarf\nKilled "..(getdwarf-1).."out of 100")
elseif getPlayerStorageValue(cid, 3002) == -1 and getPlayerStorageValue(cid, 3001) >= 1 then
doPlayerPopupFYI(cid, "Quest\n\nMonster to kill - Dragon\nKilled "..(getdragon-1).."out of 100")
elseif getPlayerStorageValue(cid, 3003) == -1 and getPlayerStorageValue(cid, 3002) >= 1 then
doPlayerPopupFYI(cid, "Quest\n\nMonster to kill - demodras\nKilled "..(getdemodras-1).."out of 100")
elseif getPlayerStorageValue(cid, 3004) == -1 and getPlayerStorageValue(cid, 3003) >= 1 then
doPlayerPopupFYI(cid, "Quest\n\nMonster to kill - wyrm\nKilled "..(getwyrm-1).."out of 100")
elseif getPlayerStorageValue(cid, 3005) == -1 and getPlayerStorageValue(cid, 3004) >= 1 then
doPlayerPopupFYI(cid, "Quest\n\nMonster to kill - warlock\nKilled "..(getwarlock-1).."out of 100")
elseif getPlayerStorageValue(cid, 3006) == -1 and getPlayerStorageValue(cid, 3005) >= 1 then
doPlayerPopupFYI(cid, "Quest\n\nMonster to kill - demon\nKilled "..(getdemon-1).."out of 100")
elseif getPlayerStorageValue(cid, 3006) == 1 then
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You have completed the tasks")
else
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You have not accepted a task")
end
end
return true
end
the error i get is
Code:
data/talkaction/scripts/questkill.lua
Description:
(luaGetCreatureStorage) Creature not found
Any ideas?