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

Solved Vip

jeppsonskate

Member
Joined
Apr 3, 2012
Messages
117
Reaction score
18
Location
Sweden
Okey i dont know how to explain but i'll try!

I want VIP to my server

1. You right click on a VIP medal and recieve vip.
2. The VIP is forever.
3. A tp to a VIP room with quests and monsters.. ONLY VIP PLAYERS CAN GO INTO THE TP
4. And an effect that says VIP thats on the characters who have VIP.


Please i really need help with this!!
 
Last edited:
You can find this script in resources.
Use the search button.

I found that script on otland and added it to my server:
vip.lua
This is the vip medal script
PHP:
local days = 30
local levelToBeVIP = 1
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if getPlayerLevel(cid) >= levelToBeVIP then
		if isPlayerVip(cid) == FALSE then
			doCreatureSay(cid, "CONGRATULATIONS! You are now a VIP for "..days.." days! You can now enter the VIP-area and use unique features!. ", TALKTYPE_ORANGE_1)
		end
		doSendAnimatedText(getPlayerPosition(cid), "Welcome!", TEXTCOLOR_RED) 
		doPlayerAddVipDays(cid, days)
		doRemoveItem(item.uid, 1)
		doSendAnimatedText(getCreaturePosition(cid), "+"..days.." days", 30)
	else
		doPlayerSendCancel(cid, "You need level "..levelToBeVIP.." to be a VIP player.")
	end	
	return TRUE
end

Aand:
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if isPlayerVip(cid) == TRUE then
		if getCreaturePosition(cid).y < toPosition.y then
			doTeleportThing(cid, {x=toPosition.x,y=toPosition.y+1,z=toPosition.z}, TRUE)
		else
			doTeleportThing(cid, {x=toPosition.x,y=toPosition.y-1,z=toPosition.z}, TRUE)
		end
		doCreatureSay(cid, "Welcome VIP Player!", TALKTYPE_ORANGE_1)
		doSendMagicEffect(getCreaturePosition(cid), 10)
	else
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Sorry, but only VIP Players can pass here! Buy VIP on the WEB.")
	end
	return TRUE
end


Script isnt mine&Found in resources
I havent used this script for ages, you must figure it out.
 
Back
Top