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

i want the vip player gets x2 exp....HELP

JoSePh15_

Well-Known Member
Joined
Jan 28, 2010
Messages
1,766
Reaction score
59
this is my vip script
LUA:
-- Credits StreamSide and Empty
function onUse(cid, item, fromPosition, itemEx, toPosition)

	if getPlayerStorageValue(cid,11551) < 1 then
		if getPlayerLevel(cid) > 1 then
			getPlayerStorageValue(cid, 11551)
			doSendAnimatedText(getPlayerPosition(cid), "Welcome!", TEXTCOLOR_RED) 
			doCreatureSay(cid, "CONGRATULATIONS! You are now a VIP for 15 days! You can now enter the VIP-area and use unique features!. ", TALKTYPE_ORANGE_1)
			setPlayerStorageValue(cid, 11551, (getPlayerStorageValue(cid,11551) + 15))
			doRemoveItem(item.uid, 1)
		else
			doPlayerSendCancel(cid,"You need to be at least level 2 to use this.")
			doRemoveItem(item.uid, 1)
		end
	else
		doPlayerSendCancel(cid,"You are already a donator.")
	end	
return TRUE
end
PLEASE I NEED THIS REP++ :peace:
 
LUA:
local storage =    --vip storage
local exp = 16        --get exp from config make it * 2
function onThink
if getPlayerStorageValue(cid,storage) > 0 then
   doPlayerSetExtraExpRate(cid,exp)
end
return true
end

i think this should work
 
Why not just make it in login.lua?
Code:
if getPlayerStorageValue(cid, 11551) >= 1 then
doPlayerSetExperienceRate(cid, getExperienceStage(getPlayerLevel(cid))*2)
end
or change getExperienceStage thing to w/e ur exp is if you dont use stages :)

that will give the double exp-rate thought, not the actual double exp xD
 
  1. If they lose the vip storage somehow (ingame), it wouldn't reduce the exp stage for the player.
  2. Same thing if they advance a level, I think it wouldn't update it too.

Actually Doggynub's script wouldn't do the first thing either, and doPlayerSetExtraExpRate no longer exists.
 
Back
Top