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.
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.
Lua:
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)
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.not_vip)
end
return TRUE
end