• 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 getCreatureStorageKey, own function, not work!

Exedion

Active Member
Joined
Jun 11, 2007
Messages
629
Reaction score
30
I made this function to check if a player have a storage with certain key number, but not work and not send error msg...

LUA:
function getCreatureStorageKey(cid, key)
local keys = getCreatureStorageList(cid)
	local c = table.find(keys, key)
	if(c == nil) then
		return false
	else
		return c, true
	end
end
 
LUA:
function getCreatureStorageKey(cid, key)
	local r = getCreatureStorage(cid, key)
	return r ~= -1 and r
end
 
Back
Top