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

Movements - VIP Floor

patriciou

Member
Joined
Dec 26, 2009
Messages
180
Reaction score
6
Hello Otlanders, Last night i have created a Random Script
Basically what it Does is that You need to be VIP to Stand on Tile
If your Not VIP you Will Get Cancel Message Back

Create File in movements Called : Vipfloor.lua
And Paste this Inside the File

PHP:
--VIP Floor script By Patz (C) All Rights Reserved--

function onStepIn(cid, item, position, fromPosition)
if isPlayer(cid) == TRUE then
	if getPlayerStorageValue(cid, here paste you VIP storage ID) == -1 then
		doTeleportThing(cid, fromPosition, FALSE)
		doCreatureSay(cid, "You Need VIP To Enter This Area!", TALKTYPE_ORANGE_1)
		doSendMagicEffect(getPlayerPosition(cid), 2)
		else
		doCreatureSay(cid, 'You have Entered VIP Area !.', TALKTYPE_ORANGE_1)
		doSendMagicEffect(getPlayerPosition(cid), 22)
	end
end
	return TRUE
end


Paste this to Movements.xml

PHP:
<movevent type="StepIn" tileitem="0" itemid="Here Paste your Floor ID" event="script" value="vipfloor.lua"/>

Script has been Made by me :)
I hope somebody will use It ! :p


Some Screen Shots :


That's What comes up When you Have got a VIP ACCESS and you Can enter the Area !








And Thats The Cancel when You dont have VIP access !


 
Last edited:
tabbed & shorter
Lua:
local vip_storage = 1337

function onStepIn(cid, item, position, fromPosition)
	if isPlayer(cid) and getCreatureStorage(cid, vip_storage) then
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_SOUND_PURPLE)
		doCreatureSay(cid, "You have entered the VIP Area!", TALKTYPE_ORANGE_1)
	else
		doTeleportThing(cid, fromPosition, true)
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
	end
	return true
end
 
Really nice!
And very usefull!
Thanks for sharing it withus.
That makes the VIP doors useless haha
Thanks again +repp
 
Back
Top