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

My luck tile

Ninkobi

Owner /Founder of Syphera
Joined
Apr 5, 2008
Messages
206
Reaction score
1
Location
England
I made a tile similar to demon oak's tile before you enter, you need to step on 5 tiles (which give storage ids)to stand a chance of entering.
My script doesn't work at all, it gives no errors and when you step on the tile you get Sorry not possible in white cancel writing.

Script:
Code:
levelneeded = 120 --- How much level you need to enter the arena ---

			local location = {
				{x=32716, y=32347, z=7},
				{x=32716, y=32347, z=7},
				{x=32716, y=32347, z=7},
				{x=32716, y=32347, z=7},
				{x=32716, y=32347, z=7},
				{x=32716, y=32347, z=7},
				{x=32716, y=32347, z=7},
				{x=32716, y=32347, z=7},
				{x=32716, y=32347, z=7},
				{x=32716, y=32347, z=7}
			}
			local fail = {x=32716, y=32339, z=7}

function onStepIn(cid, item, pos)
	if isPlayer(cid) == TRUE then
	if item.actionid == 17976 then
		if getPlayerStorageValue(cid,346211) == -1 and getPlayerStorageValue(cid,346212) == -1 and getPlayerStorageValue(cid,346213) == -1 and getPlayerStorageValue(cid,346214) == -1 and getPlayerStorageValue(cid,346215) == -1 then
			doTeleportThing(cid,fail)
			doPlayerSendTextMessage(cid,22,"You are not welcome to fight the demon oak!")
		elseif getPlayerStorageValue(cid,346211) == 1 and getPlayerStorageValue(cid,346212) == 1 and getPlayerStorageValue(cid,346213) == 1 and getPlayerStorageValue(cid,346214) == 1 and getPlayerStorageValue(cid,346215) == 1 and getPlayerLevel(cid) >= levelneeded then
			doTeleportThing(cid,location[rand])
			rand = math.random(1,10)
					end
				end
			end
		end
	end

Please help, thanks in advance.
 
Back
Top Bottom