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

onRemoveItem()?

kokokoko

Veteran OT User
Joined
Feb 4, 2008
Messages
921
Reaction score
257
I'm trying to make my quest chests unmoveable(How the heck can all these nub ots have this when i can't figure out how to do it? :()

There's no errors in the console.

This is what i got:

Lua:
function onRemoveItem(item, tile, pos)

oldPos = getThingPos(item.uid)

	if item.actionid > 0 then
	doTeleportThing(getThingfromPos(pos).uid, oldPos)
	else
		return TRUE
	end
end

Code:
<movevent type="RemoveItem" itemid="1747" event="script" value="moveQuestContainer.lua"/>


Please help me.. Bueeeh :confused:

:p

Thanks in advance,
//Kokokoko
 
Last edited:
Back
Top