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

Hello

Nacke

New Member
Joined
Feb 13, 2008
Messages
79
Reaction score
0
Hello, where can I find a script for a tile that you step on a storage room in addition to advertising in which you located? Im using TFS 0.3.4





Thz for all
 
My example of inquisition-tile:
Lua:
function onStepIn(cid, item, pos)

local level = 120
local storage = 25602

	if getPlayerLookDir(cid) == 0 then
		newdir = 2
	elseif getPlayerLookDir(cid) == 1 then
		newdir = 3
	elseif getPlayerLookDir(cid) == 2 then
		newdir = 0
	else
		newdir = 1
	end

	if item.actionid == 25602 then
		if isPlayer(cid) == TRUE and getPlayerStorageValue(cid,storage) == nil then
			doCreatureSay(cid, "Entering the Blood Halls", TALKTYPE_ORANGE_1)
			setPlayerStorageValue(cid,25602,1)
		else
			return FALSE
		end
	end
	return TRUE
end
 
Hello,in movements o actions¿?

<action actionid="1002" script="tile_inquisition.lua" />

<movevent type="StepIn" actionid="1002" event="script" value="tile_inquisition.lua"/>



thz
 
Back
Top