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

Lua Only usable in PZ?

Evan

A splendid one to behold
Senator
Premium User
Joined
May 6, 2009
Messages
7,019
Solutions
1
Reaction score
1,029
Location
United States
Anyone know how to make it so this script is only usable outside the protection zone?

Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
		doTransformItem(itemEx.uid, 6299)
		doDecayItem(itemEx.uid)
		doSendAnimatedText(fromPosition, "*tink*", COLOR_WHITE)
	return true
end
 
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getTilePzInfo(fromPosition) == FALSE then
		doTransformItem(itemEx.uid, 6299)
		doDecayItem(itemEx.uid)
		doSendAnimatedText(fromPosition, "*tink*", COLOR_WHITE)
	return true
end

end

perhaps?
 
Back
Top