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

Lua Creature not found

sonny11

New Member
Joined
Dec 22, 2007
Messages
137
Reaction score
0
Hi, im getting this error when i load my server up with this talkaction

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?
 
Lua:
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)

You can't put that outside the function.. it can't be loaded while the script is loading.. move it inside the "onSay" function
 
Back
Top