Hi!
I am having some trouble getting a function/command work properly. I want VIP players to gain an additional 50% more exp, but the problem is that none of the "doPlayerSetRate", "doPlayerAddExpRate", "doPlayerSetExtraExpRate" and so on works.
It would mean alot to me if anybody could tell me what to write.
Here is the script:
getPlayerVipDays is a function that I've added myself and it's working fine.
Thanks!
I am having some trouble getting a function/command work properly. I want VIP players to gain an additional 50% more exp, but the problem is that none of the "doPlayerSetRate", "doPlayerAddExpRate", "doPlayerSetExtraExpRate" and so on works.
It would mean alot to me if anybody could tell me what to write.
Here is the script:
Lua:
function onLogin(cid)
if getPlayerVipDays(cid) > 0 then
doPlayerSetRate(cid, SKILL__LEVEL, 2)
end
return TRUE
end
Thanks!
Last edited: