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

Set quest chests unmoveable

morramead

New Member
Joined
Jan 23, 2008
Messages
74
Reaction score
0
Hello, in the newest TFS Version, the script for unmoveable quest chests was removed (i think), on my server players can get the chest out.

Please can someone post/help me about this.

Thanks
 
Simple.

Add a unique id to the chest. (on mapeditor).

And its stuck. :)
 
data\movements, add to movements.xml:
PHP:
	<!-- Walkback when walking on quest chest -->
	<movevent event="StepIn" itemid="1738" script="walkback.lua"/>
	<movevent event="StepIn" itemid="1740" script="walkback.lua"/>
	<movevent event="StepIn" fromid="1746" toid="1749" script="walkback.lua"/>
/\
you can add more items, if you useing another quest chests.


\data\movements\scripts, create walkback.lua:
PHP:
function onStepIn(cid, item, position, fromPosition)
	if item.uid > 0 and item.uid <= 65535 and isPlayer(cid) == TRUE then
		doTeleportThing(cid, fromPosition, FALSE)
	end
	return TRUE
end

all credits to tfs developers.
 
if i make this, players can move it on the ground

- edit

I've test the tfs and this bug is same

PLEASE MOVE BACK TO THE C++ CODE SECTION it is not a lua problem

TFS forget this code.
 
Last edited:
Back
Top