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

[Request] Two easy scripts REP+

Alls

New Member
Joined
Jan 17, 2008
Messages
26
Reaction score
1
I think it's easy for otland scripters, is hard for me "/


I am needing a script when the player walks on top of a tile SetPlayer Storage XXXXX.

also I need a teleport check PlayerStorage if with Storage is pass, if not it does not pass.

Thanks.
 
First:
Code:
local storage = 33001
function onStepIn(cid, item, fromPosition, toPosition)
	if(getPlayerStorageValue(cid, storage) == -1) then
		setPlayerStorageValue(cid, storage, 1)
	else
		doPlayerSendCancel(cid, "You have already stepped on this tile.")
                doTeleportThing(cid, fromPosition)
	end
	return true
end

Second:
Code:
local storage = 33001
function onStepIn(cid, item, fromPosition, toPosition)
	if(getPlayerStorageValue(cid, storage) == 1) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Welcome.")
	else
		doPlayerSendCancel(cid, "You must step on the tile first.")
                doTeleportThing(cid, fromPosition)
	end
	return true
end
 
Back
Top