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

StepIn Create Latter

Heliox

New Member
Joined
Apr 29, 2009
Messages
52
Reaction score
0
You guys should know why I need this. I need a script that when you step in a certain tile a latter is created somewhere. And once you step out the latter is gone. Can anyone help me on this?

Ill give ya rep!
 
Code:
local config = {
	id = xxxx,
	pos = {x = , y = , z = , stackpos = },
	text = "hfhf"
}

function onStepIn(cid, item, position, fromPosition)
	local letter = doCreateItem(config.id, 1, config.pos)
	doSetItemText(letter, config.text)
	return TRUE
end

function onStepOut(cid, item, position, fromPosition)
	doRemoveItem(getThingFromPos(config.pos).uid, 1)
	return TRUE
end
 
Back
Top