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

Depot

Cloow

Active Member
Joined
May 10, 2010
Messages
1,086
Reaction score
35
Hello, when someone put a item in the dp, everyone can acces it :<

Yeah, I have put the town id on the locker and everythin I can think of. Download new RME and tested to.

plox hilp mi!

+reppp
 
Alright, I found something intresting. I download an new .exe the one which is released in Downloads. 0.3.6pl1 Crying damson.

o56ibt.png
 
Last edited:
do you have this in your items.xml,
<item fromid="2589" toid="2592" article="a" name="locker">
<attribute key="type" value="depot" />
<attribute key="containerSize" value="30" />
</item>
that and this
<item id="2594" article="a" name="depot chest">
<attribute key="containerSize" value="30" />
</item>
?
 
If i'll copy and paste that I get debugg. Since I dont have the locker 2594.

So instead I do like this.

<item fromid="2590" toid="2594" article="a" name="locker">
<attribute key="type" value="depot" />
<attribute key="containerSize" value="30" />
</item>

Then everyone can acces the items.
And in console it says: Cannot load depot 1 for player Cloow
and: Failure: creating a new depot with id: 1 for player: Cloow
 
I'll try with a new database.

EDIT: Alright, I download the schemas from rev 3430, Im using 3429.
Still the same thin.
 
Last edited:
the only other thing I can think of is that towns aren't set correctly, try changing the ID to 2 or something (if you have a town with ID 2)
 
I've already did that =/

I have 4 towns, I made 4 depots in the same town, put 4 diffrent ID's on each of em. All had same problem ;<
 
Make it database.lua
and put it in Data--->Lib


Code:
if(result == nil) then
	print("> WARNING: Couldn't load database lib.")
	return
end

Result = createClass(nil)
Result:setAttributes({
	id = -1,
	query = ""
})

function Result:getID()
	return self.id
end

function Result:setID(_id)
	self.id = _id
end

function Result:getQuery()
	return self.query
end

function Result:setQuery(_query)
	self.query = _query
end

function Result:create(_query)
	self:setQuery(_query)
	local _id = db.storeQuery(self:getQuery())
	if(_id) then
		self:setID(_id)
	end

	return self:getID()
end

function Result:getRows(free)
	local free = free or false
	if(self:getID() == -1) then
		error("[Result:getRows] Result not set!")
	end

	local c = 0
	repeat
		c = c + 1
	until not self:next()

	local _query = self:getQuery()
	self:free()
	if(not free) then
		self:create(_query)
	end

	return c
end

function Result:getDataInt(s)
	if(self:getID() == -1) then
		error("[Result:getDataInt] Result not set!")
	end

	return result.getDataInt(self:getID(), s)
end

function Result:getDataLong(s)
	if(self:getID() == -1) then
		error("[Result:getDataLong] Result not set!")
	end

	return result.getDataLong(self:getID(), s)
end

function Result:getDataString(s)
	if(self:getID() == -1) then
		error("[Result:getDataString] Result not set!")
	end

	return result.getDataString(self:getID(), s)
end

function Result:getDataStream(s)
	if(self:getID() == -1) then
		error("[Result:getDataStream] Result not set!")
	end

	return result.getDataStream(self:getID(), s)
end

function Result:next()
	if(self:getID() == -1) then
		error("[Result:next] Result not set!")
	end

	return result.next(self:getID())
end

function Result:free()
	if(self:getID() == -1) then
		error("[Result:free] Result not set!")
	end

	self:setQuery("")
	local ret = result.free(self:getID())
	self:setID(-1)
	return ret
end

Result.numRows = Result.getRows
function db.getResult(query)
	if(type(query) ~= 'string') then
		return nil
	end

	local ret = Result:new()
	ret:create(query)
	return ret
end
 
Alright, made that file in LIB

Tested the mail system to, made a parcel and a label sayin

Cloow
{Townname}
then i throw it on mailbox, this error came.

qoimpy.png

same as depot
 
In the distro there is an ID for each person
e.g:/info cloow
you will see an id
I guess there is problem in the id of the distro
 
Back
Top