function calibrateExpRate(cid)
local rate = config.rateExperience
-- TODO: make legit if statements.
if PLAYERVIP then
rate = rate * 1.5
end
if PLAYERREDSKULL then
rate = rate * 0.5
end
if BOTTERPENALTY then
rate = rate * 0.5
end
return rate
end
-- usage:
doPlayerAddExperience(cid, 100 * calibrateExpRate(cid))
-- change 100 with base exp.
doPlayerAddExperience(cid, X)
local exp = getExperienceStage(getPlayerLevel(cid), getVocationInfo(getPlayerVocation(cid)).experienceMultiplier)
doPlayerAddExperience(cid, 100 * exp)
Or mby use search:
http://otland.net/f163/exp-reward-multiple-exp-stage-188001/
basically I have a custom function for exp,
if VIP rate = rate * 1.5
if red skull rate = rate * 0.5
if is botterpenaltystatus rate = rate * 0.5
so basically players will have all different exp rates based on their status in game weather or not they were caught botting or have VIP, so I want my quests to give the players exp of quest * their own exp rate
function calibrateExpRate(cid)
local rate = config.rateExperience
-- TODO: make legit if statements.
if PLAYERVIP then
rate = rate * 1.5
end
if PLAYERREDSKULL then
rate = rate * 0.5
end
if BOTTERPENALTY then
rate = rate * 0.5
end
return rate
end
-- usage:
doPlayerAddExperience(cid, 100 * calibrateExpRate(cid))
-- change 100 with base exp.