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

Requestion scripts: Talking Tiles, Teleport Rune, Jail rune

Eternal Life

New Member
Joined
May 15, 2011
Messages
148
Reaction score
1
Location
Aguadilla,Puerto Rico
Hello!!!! Today i am requesting a few script for tibia tikoot 8.10



Talking Tiles: a script that when you edit a tile and it says "Temple!" like in tibia 8.6+! (doesnt have to be the tile could be the teleport or a sign)


Teleport Rune: a script that when i use it on a person anywere on the screen including through walls that person gets teleported to a specific place.


Jail Rune: a script that works exactly like the Teleport Rune (trough walls and anywere on screen) but he can land randomly on 1 out of 8 diferent prison cells!



I will apreciated if you can help me with this!! :) thanx!!
 
Last edited:
PHP:
-- Created using QtLuaPad on Thu Dec 1 2011
-- Written by: RuggedMage.

local unjailable group = 3
local jailstorage = 1000000
local teleportto = { x = 140, y = 140, z = 6 }
local jailtime = 10 -- This will add everytime the players are jailed
local jailCounter = {[1] = "first", [2] = "second", [3] = "third", [4] = "fourth",
	[5] = "fifth", [6] = "sixth", [7] = "seventh", [8] = "eighth",
	[9] = "ninth", [10] = "tenth", [11] = "eleventh", [12] = "twelveth"
	} 
	
local function jailPlayer(cid, pos)
	pos.stackpos = 255
	local target =getThingfromPos(pos)
	local pPos =getCreaturePosition(cid)
	if isPlayer(target.uid) == TRUE then
			if getPlayerGroupId(target.uid) < unjailableGroup then
				local function teleportBackF (cid)
					return doTeleportThing(target.uid, TeleportBack, 0)
				end
				addEvent (teleportBackF, jailTime * 120000 * getPlayerStorageValue(target.uid, JailStorage), target.uid)
				setPlayerStorageValue(target.uid, JailStorage, getPlayerStorageValue(target.uid, JailStorage) + 1)
				doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, getCreatureName(target.uid).." Will be jailed for "..JailCounter[getPlayerStorageValue(target.uid, JailStorage)].." This amount of  ".. JailTime * getPlayerStorageValue(target.uid, JailStorage) .." minutes.")
				doTeleportThing(target.uid, TeleportTo, 0)
				return LUA_NO_ERROR
			else
				doPlayerTextMessage(cid, MESSAGE_STATUS_SMALL, "You may not Jail this player.")
				return LUA_ERROR
			end
		else
			doPlayerSendTextMessage(cid, MESSAGE_STATUES_SMALL, "You can only jail normal players.")
			return LUA_ERROR
		end
	end
	
	function onCastSpell(cid, var)
		local pos =variantToPosition(var)
		if(pos.x ~= 0 and pos.y ~= 0 poz.z ~= 0) then
			return jailPlayer(cid,pos)
			end
			
			doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE)
			doSendMagicEffect (getPlayerPosition(cid), CONST_ME_POFF)
			return LUA_ERROR
			end



PHP:
<rune name="Jailing Rune" id="2283" allowfaruse="1" charges="10000" lvl="1" maglv="0" exhaustion="4500" needtarget="1" script="custom/jail rune.lua"/>
 
Back
Top