• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Action Unjail Doll

Slave Ots

LUA Newbie™
Joined
Jan 19, 2012
Messages
114
Reaction score
32
Location
/goto Slave Ots
hello this is unjail script for tfs 0.3+
it works 100% :D

Code:
function onUse(cid, item, frompos, item2, topos)

		unjailpos = {x=1000, y=1000, z=7, stackpos=253}
		local name = getCreatureName(cid)
		
		if getPlayerStorageValue(cid, 1338) > 0 then 
		doSendMagicEffect(getPlayerPosition(cid), 27)
                doTeleportThing(cid, unjailpos, TRUE) 
                setPlayerStorageValue(cid, 1338, 0) 
                setPlayerStorageValue(cid, 1339, 0)  
						doRemoveItem(item.uid, 1)
							return true
						end
			
		doPlayerSendCancel(cid, "your are not in jail..")
		doSendMagicEffect(getPlayerPosition(cid), 2)
	return 1
	end
please REP++
 
Back
Top