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

Teleport Scrtoll for Premiums

Kudzu

Active Member
Joined
Apr 9, 2008
Messages
512
Reaction score
40
Location
localhost
Can somebody change this script,I need change this teleport scroll for only premiums player.
PHP:
function onUse(cid, item, frompos, item2, topos)
	if hasCondition(cid, CONDITION_INFIGHT) == TRUE then
		doPlayerSendCancel(cid, "You cant use this in battle!")
		return FALSE
	end
tppos = {x=703, y=600, z=7, stackpos=1}
if item.itemid == 7844 then
doTeleportThing(cid, tppos)
doPlayerSendTextMessage(cid,22,"Fly...")
doPlayerRemoveItem(cid,7844,1)
end
end
 
Not tested :
LUA:
function onUse(cid, item, frompos, item2, topos)
    if hasCondition(cid, CONDITION_INFIGHT) == TRUE then
        doPlayerSendCancel(cid, "You cant use this in battle!")
        return FALSE
    end
    if getPlayerPremiumDays(cid) < 1 then
	doPlayerSendCancel(cid, "You do not have premium!")
	return FALSE
    end
tppos = {x=703, y=600, z=7, stackpos=1}
if item.itemid == 7844 then
doTeleportThing(cid, tppos)
doPlayerSendTextMessage(cid,22,"Fly...")
doPlayerRemoveItem(cid,7844,1)
end
end
 
Back
Top