• Sign up for TFS Icon Competition! The prize includes Otland Premium time and a medal, as well as obviously taking part in TFS history.
  • 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!

RevScripts Problem with bonus exp script


New Member
Apr 2, 2020
Reaction score
Hello guys,

Lately I've been strugling to get the Castle exp bonus on my server working. Before, not even the message was being sent. Now at least the message is working properly, but the players still don't get the bonus exp.

Tag has been added to both creaturescripts.xml and login.lua

I'll appreciate very much any help!
Thank you.

function onLogin(cid)

local rate = 1.2 -- 20%
local config = {
welvip = "sua guild domina o CASTLE 24H você tem "..((rate - 1)*100).."% de exp a mais agora!",
not_vip = "a guild que domina o CASTLE 24H ganha "..((rate - 1)*100).."% a mais de experiencia!",
storage_guild = getGlobalStorageValue(123123) -- storage guild

if getPlayerGuildId(cid) == config.storage_guild then
doPlayerSetExperienceRate(cid, rate)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.welvip)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.not_vip)
return TRUE