mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 03:24:55 +02:00
add onGameStart/onGameEnd/onLogin/onLogout events
This commit is contained in:
@@ -122,8 +122,8 @@ function Skills.onSkillChange(id, level, percent)
|
||||
setSkillPercent('skillId' .. id, percent, 'You have ' .. (100 - percent) .. ' percent to go')
|
||||
end
|
||||
|
||||
connect(Game, { onLogin = Skills.create,
|
||||
onLogout = Skills.destroy,
|
||||
connect(Game, { onGameStart = Skills.create,
|
||||
onGameEnd = Skills.destroy,
|
||||
onExperienceChange = Skills.onExperienceChange,
|
||||
onLevelChange = Skills.onLevelChange,
|
||||
onHealthChange = Skills.onHealthChange,
|
||||
|
Reference in New Issue
Block a user