Da o bonus para os vips:
function onLogin(cid)
local rate = 1.3 -- 30%
local config = {
vip = "Você tem "..((rate - 1)*100).."% de exp a mais agora!",
notvip = "Tornesse vip e ganhe "..((rate - 1)*100).."% a mais de experiencia!",
storage = 343434
}
if vip.hasVip(cid) == TRUE then
doPlayerSetExperienceRate(cid, rate)
setPlayerStorageValue(cid, config.storage, 1)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.vip)
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.notvip)
end
return TRUE
end
Da xp pros que ganharam o casttle e são free:
dofile("./_woe.lua")
function onLogin(cid)
local config = {
storage = 343434
}
Woe.getInfo()
local Guild_ID = getPlayerGuildId(cid)
if (vip.hasVip(cid) == FALSE) and(Guild_ID == infoLua[2]) and (infoLua[2] ~= 0) and getPlayerStorageValue(cid, config.storage) < 0 then
doPlayerSetExperienceRate(cid, 1.20) -- here
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your guild has won the last War of Emperium, for that reason you have 20% extra experience.")
end
if (vip.hasVip(cid) == FALSE) and(Guild_ID == infoLua[2]) and (infoLua[2] ~= 0) and getPlayerStorageValue(cid, config.storage) == 1 then
doPlayerSetExperienceRate(cid, 1.50) -- here
setPlayerStorageValue(cid, config.storage, 2)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your guild has won the last War of Emperium, for that reason you have 20% extra experience.")
end
return true
end
Da XP pra quem é VIP e ganhou casttle:
dofile("./_woe.lua")
function onLogin(cid)
Woe.getInfo()
local Guild_ID = getPlayerGuildId(cid)
local rate = 1.5 -- 50%
local rate2 = 1.7 -- 70%
local config = {
vipecastle = "Logo voce tem "..((rate - 1)*100).."% de exp a mais por ter conquistado o castelo e ser vip!",
notviporcastle = "Tornesse vip e ganhe "..((rate - 1)*100).."% a mais de experiencia!",
storage = 343434
}
if (vip.hasVip(cid) == TRUE) and (Guild_ID == infoLua[2]) and (infoLua[2] ~= 0) and getPlayerStorageValue(cid, config.storage) < 0 then
doPlayerSetExperienceRate(cid, rate)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.vipecastle)
end
if (vip.hasVip(cid) == TRUE) and (Guild_ID == infoLua[2]) and (infoLua[2] ~= 0) and getPlayerStorageValue(cid, config.storage) == 1 then
doPlayerSetExperienceRate(cid, rate2)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.vipecastle)
end
return TRUE
end
Depois disso ai quero meu REP+ em u-u kkkk