18 lines
486 B
Lua
18 lines
486 B
Lua
|
|
GuildManager = GuildManager or {}
|
|
|
|
function GuildManager:OnGuildBuff( guild_level, guild_point, player_name )
|
|
local GuildBuffDuration = tonumber(get_env("game.guild_buff_minute")) or 60
|
|
local shouldBeAppliedOnCreatures = tonumber(get_env("game.guild_buff_work_on_creatures")) or 1
|
|
|
|
if shouldBeAppliedOnCreatures == 1 then
|
|
add_cstate( 6523, guild_level, ( GuildBuffDuration * 100 ) )
|
|
end
|
|
|
|
end
|
|
|
|
function GuildManager:OnGuildDonation( donated_amount, guild_points, player_name)
|
|
|
|
|
|
|
|
end |