• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Need script easy!

Elexonic

Well-Known Member
Joined
Jun 18, 2008
Messages
1,920
Reaction score
59
One script that takes away your days of premium account with one item.
doPlayerRemovePremiumDays(cid, 30)


A door, only premium players can pass and tile Also.

and if they can fix this so that no more than 90 days premium .. thanks.


function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerPremiumDays(cid) > 90 then
doPlayerSendCancel(cid, "You can only have 90 days of premium account.")
else

doPlayerAddPremiumDays(cid, 30)
doPlayerSendTextMessage(cid, "We have added 30 vip days to your account!.")
doSendMagicEffect(topos,24)
doRemoveItem(item.uid)

end
return true
end

Thx
 
hummm try it and tell me
LUA:
local posin = {x=989,y=1010,z=7} --- pos where when player click on door will go inside
local storag = 1238         ---storage to get out
local posout = {x=987,y=1010,z=7}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isPremium(cid) == FALSE then
doPlayerSendCancel(cid,"You need premium to enter")
return true
end
if getPlayerStorageValue(cid,storag) < 0 then
doTeleportThing(cid,posin)
doCreatureSay(cid, "Welcome to our vip area", TALKTYPE_ORANGE_1)
doSendMagicEffect(posin,10)
setPlayerStorageValue(cid,storag,1)
return true
end
if getPlayerStorageValue(cid,storag) > 0 then
doTeleportThing(cid,posout)
doCreatureSay(cid, "Hope You come back soon :)!!", TALKTYPE_ORANGE_1)
doSendMagicEffect(posout,10)
setPlayerStorageValue(cid,storag,-1)
return true
end
end

put some action id on door
 
Last edited:
can not be shorter? just add some line but what?

function onUse(cid, item, fromPosition, itemEx, toPosition)
if not(isPremium(cid)) then
doPlayerSendCancel(cid,"You need premium to enter")
return false
else
doPlayerSendCancel(cid,"You are premium")
doTeleportThing(cid, toPosition)

return true
end
end
 
would shorter differ with you lol ( you need a working script not a dress)
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isPremium(cid) == FALSE then
doPlayerSendCancel(cid,"You need premium to enter")
return true
end
doPlayerSendCancel(cid,"Welcome")
doTeleportThing(cid, toPosition)

return true
end
 
Back
Top