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

REquest premium system

semary

[BB] OTland
Joined
May 3, 2009
Messages
813
Reaction score
18
Location
E G Y P T
i request premium system NOT VIP SYSTEM

please don't say search or edite ect

-i want premium system + title like on rookguard ppls cant pass if they are not premy.

-Items on click on it give u premy items id 5785

please rember i dont want it vip system

so the site show if he is premy ect and outfits for premy
thats why i need premium system

REP+
 
Why would you need a premium system if it is already build-in?


##
try this for tile
LUA:
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
	local p, t, a, v = getPlayerPremiumDays(cid), 100, 1052, getThingPos(cid)
	if item.actionid == a then
		if p > 0 then
			return doSendMagicEffect(v,10)
		else
			doTeleportThing(cid,fromPosition)
			return doSendMagicEffect(v,2)
	end
	return true
end

give the tile actionid 1052
 
Up shortly?
LUA:
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition)
    if(not isPremium(cid)) then
        doTeleportThing(cid,fromPosition, true)
        doSendCancel(cid,"Only Premium players are allowed.")
    end
end
 
Last edited:
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local a, v = 7, getThingPos(cid)
	doPlayerAddPremiumDays(cid,a)
	doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED,'You have gained' .. a .. 'days of premium account.')
	doSendMagicEffect(v,12)
	return doRemoveItem(item.uid)
end
 
Code:
  function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
        local p, t, a, v = getPlayerPremiumDays(cid), 100, 1052, getThingPos(cid)
        if item.actionid == a then
                if p > 0 then
				local pos = {x=1,y=1,z=1}
						doTeleportThing(cid,pos)
                        return doSendMagicEffect(v,10)
                else
                        doTeleportThing(cid,fromPosition)
                        return doSendMagicEffect(v,10)
        end
        return true
end
 
LUA:
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
return isPremium(cid) and true or doTeleportThing(cid,{x=position.x+2,y=position.y,z=position.z}) and doPlayerSendTextMessage(cid, 20 ,"Only Premium Citizens are allowed to enter Royal Area",20);
end
 
[25/05/2010 00:15:36] [Error - LuaScriptInterface::loadFile] data/movements/scripts/vip.lua:14: 'end' expected (to close 'function' at line 1) near '<eof>'
[25/05/2010 00:15:36] [Warning - Event::loadScript] Cannot load script (data/movements/scripts/vip.lua)
[25/05/2010 00:15:36] data/movements/scripts/vip.lua:14: 'end' expected (to close 'function' at line 1) near '<eof>'

ur both script don't work ;/
 
try this

LUA:
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
local v = getThingPos(cid)
local pos = {x=x.v+2,y=y.v,z=z.v} -- x.v+2 will teleport you to west, y.v+2 would teleport you to north, to go south/east just make it a negative.
	if isPremium(cid) then
		doTeleportThing(cid,v)
		doSendMagicEffect(pos,10)
	else
		doTeleportThing(cid, fromPos)
		doSendMagicEffect(v, 10)
	end
	return true
end
 
Code:
function onStepIn(cid, item, position, fromPosition)
	return isPremium(cid) or doTeleportThing(cid, fromPosition, false)
end
 
Code:
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
[B]local v = {x=10,y=10,z=10}[/B] --edit this
	if item.actionid == 1500 then
		if isPremium(cid) then
			doPlayerSendTextMessage(cid,'Welcome.',19)
			doTeleportThing(cid,v)
			doSendMagicEffect(v,10)
		else
			doPlayerSendTextMessage(cid,'You aren\'t allowed to enter this area.',19)
			doTeleportThing(cid,fromPosition)
			doSendMagicEffect(getThingPos(cid),2)
		return true
		end
	end
end
 
LUA:
  function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition)
local placefacc = {x=xx ,y=yy ,z=z}
local placepacc = {x=xx ,y=yy ,z=z}
    if(not isPremium(cid)) then
        doTeleportThing(cid,placefacc, true)
        doSendCancel(cid,"Only Premium players are allowed.")
    elseif isPremium(cid) then
         doTeleportThing(cid,placepacc, true)
    end
end
 
i request premium system NOT VIP SYSTEM

please don't say search or edite ect

-i want premium system + title like on rookguard ppls cant pass if they are not premy.

-Items on click on it give u premy items id 5785

REP+

Bridge
Code:
function onStepIn(cid, item, position, fromPosition, toPosition)
	local cfg = {
		[1001] = {
			premOnly = "yes", -- "yes" or "no"
			useLevel = "yes", -- "yes" or "no"
			level = 2 -- Level to pass
		}
	}
	local v = cfg[item.actionid]
	v.premOnly = getBooleanFromString(v.premOnly)
	v.useLevel = getBooleanFromString(v.useLevel)
	
	if(v.premOnly) and (v.useLevel) then
		if(getPlayerLevel(cid) < v.level) then
			return not doTeleportThing(cid, fromPosition, true)
		end
		if(not isPremium(cid))
			return not doTeleportThing(cid, fromPosition, true)
		end
	end
	
	return true
end

Medal
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local days = {
		add = 10,
		max = 90
	}
	if(getPlayerPremiumDays(cid) > days.max) then
		return doPlayerSendCancel(cid, "You cannot have more than " .. days.max .. " premium days.")
	end
	
	return doPlayerAddPremiumDays(cid, days.add) and doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Congratulations! You have received " .. days.add .. " premium days.") and doRemoveItem(item.uid)
end
 
@JDB:

Sorry :S
Code:
local cfg = {
	[1001] = {
		premOnly = "yes", -- "yes" or "no"
		useLevel = "yes", -- "yes" or "no"
		level = 2 -- Level to pass
	}
}

function onStepIn(cid, item, position, fromPosition, toPosition)
	local v = cfg[item.actionid]
	if(v) then
		v.premOnly = getBooleanFromString(v.premOnly)
		v.useLevel = getBooleanFromString(v.useLevel)

		if(v.useLevel and getPlayerLevel(cid) < v.level) then
			return doTeleportThing(cid, fromPosition, true)
		end

		if(v.premOnly and not isPremium(cid)) then
			return doTeleportThing(cid, fromPosition, true)
		end
	end
end

Code:
local days = {
	add = 10,
	max = 90
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
	if(getPlayerPremiumDays(cid) >[COLOR="red"]=[/COLOR] days.max) then
		return doPlayerSendCancel(cid, "You cannot have more than " .. days.max .. " premium days.")
	end
	
	return doPlayerAddPremiumDays(cid, days.add) and doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Congratulations! You have received " .. days.add .. " premium days.") and doRemoveItem(item.uid)
end
 
Bridge
Code:
function onStepIn(cid, item, position, fromPosition, toPosition)
	local cfg = {
		[1001] = {
			premOnly = "yes", -- "yes" or "no"
			useLevel = "yes", -- "yes" or "no"
			level = 2 -- Level to pass
		}
	}
	local v = cfg[item.actionid]
	v.premOnly = getBooleanFromString(v.premOnly)
	v.useLevel = getBooleanFromString(v.useLevel)
	
	if(v.premOnly) and (v.useLevel) then
		if(getPlayerLevel(cid) < v.level) then
			return not doTeleportThing(cid, fromPosition, true)
		end
		if(not isPremium(cid))
			return not doTeleportThing(cid, fromPosition, true)
		end
	end
	
	return true
end

Medal
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local days = {
		add = 10,
		max = 90
	}
	if(getPlayerPremiumDays(cid) > days.max) then
		return doPlayerSendCancel(cid, "You cannot have more than " .. days.max .. " premium days.")
	end
	
	return doPlayerAddPremiumDays(cid, days.add) and doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Congratulations! You have received " .. days.add .. " premium days.") and doRemoveItem(item.uid)
end

its awsoem but it can be by tping to other postion like x ,y z
 
Back
Top