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

[vip]extra exp

ArionOts

New Member
Joined
Oct 17, 2014
Messages
22
Reaction score
0
Hello Otlanders :D
I 'm using tfs 0.3.6 and i need script which be increase your experience for monsters by 20%( if vip player). Im lookingg on forum on that script but i only found for tfs 1.0. Thanks :)
 
Creaturescript/script

function onLogin(cid)

local rate = 1.5 -- 50%
local config = {
true_vip = "You gain "..((rate - 1)*100).."% exp more now!",
false_vip = "If you become VIP you will get "..((rate - 1)*100).."% more experience",
vip = isPremium(cid)
}

if (config.vip == TRUE) then
doPlayerSetExperienceRate(cid, rate)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.true_vip)
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.false_vip)
end
return TRUE
end

For example

local rate = 1.2

local rate = 1.2 -- 20% -- (100% Basic + 20% Bonus)
local rate = 1.3 -- 30% -- (100% Basic + 30% Bonus)

Creaturescript/script/login

registerCreatureEvent(cid, "ExpVip")

Creaturescript.xml

<event type="login" name="ExpVip" script="vipexp.lua"/>


I have considered that PREMIUM Players Whom Are VIP
 
Back
Top