I just said it's possible, not that I will do it for you..
yes, because all setting are saved in global event, database would be waste of resources
@Pretx
Test it, I only tested on 0.4, but it should work.
gtfo troll..
Ofc it is saved in database-.-
onLogin() add this:
local gid = getPlayerGuildId(cid)
if gid ~= 0 then
local ex = getPlayerRates(cid)[SKILL__LEVEL]
doPlayerSetRate(cid, SKILL__LEVEL, (ex+0.05))
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You received 5% extra experience for being in a guild.")
end
Nice waste there, why would you assign something to variables you use only once?
Write in more clear way next time then, because your post obviously seemed to mean like global storage isn't related to database.Just dont post if you don't know what you are talking about.
Either I could use direct database edits (resource waste) or I can use global variable, which are saved only at server save
I just asked why would you do that.I just copied it. you dont need to use.
onLogin() add this:
LUA:local gid = getPlayerGuildId(cid) if gid ~= 0 then local ex = getPlayerRates(cid)[SKILL__LEVEL] doPlayerSetRate(cid, SKILL__LEVEL, (ex+0.05)) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You received 5% extra experience for being in a guild.") end