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

2 Players in 1 Depo

Fedake

New Member
Joined
Apr 28, 2009
Messages
33
Reaction score
0
HI.
I've got problem, I am using TFS 0.3.6. When someone is in depo other players can step "at" him. Then he can steal his stuff.
How to fix it ? ;D
 
hmm okay, well you have to have like a actionID, 100+townid or something, like if the town is named Thais and have townid 6. you but 106 on that switch at the depot. though im not really sure what id it was, but try that one :)
 
@up
Don't work

I tried create own script, but it crashes server after 3 seconds. ;/ Here is code, if someone can fix it:

Code:
function onStepIn(cid, item, position, fromPosition)

local function pushBack(cid, position, fromPosition, displayMessage)

	if(item.actionid == 101) then
		local f = checkCreature[isPlayer]
		if(f(cid)) then
			pushBack(cid, position, fromPosition, false)
		end

		return true
	end
end
 
Maybe, maybe not.
Lua:
function onStepIn(cid, item, position, fromPosition)
        local depot = {x=position.x, y=position.y, z=position.z, stackpos=2}
        local pos = getThingFromPos(depot)
                if pos.itemid > 0 then
                        doTeleportThing(cid, fromPosition, true)
                end
        return true
end
 
Last edited:
Maybe, maybe not.
Lua:
function onStepIn(cid, item, position, fromPosition)
	local pos = getThingFromPos(position)
	pos.stackpos = 253
		if pos.itemid > 0 then
			doTeleportThing(cid, fromPosition, true)
		end
	return true
end

With this script, no one can step on this ground - automatic push back. But it don't crashes server :D
 
Same : / But if the problem occurs in all ots 8.54, somewhere must be a solution. I saw many ots where there is no such problem.
 
I'm using 0.3.6pl1 and I don't have that problem, but well, I fixed the script if you want to fix your problem that way.
Should work now ^^
 
items.xml
Code:
<item fromid="11059" toid="11060" name="glowing switch">
	<attribute key="walkStack" value="0" />
</item>
 
Back
Top