forked from otland/forgottenserver
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add: missing screenshots triggers (otland#4574)
- Loading branch information
1 parent
e441ce9
commit b8e69c2
Showing
4 changed files
with
39 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
data/scripts/creaturescripts/player/update_client_exp_gain_rate.lua
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
data/scripts/creaturescripts/player/update_client_on_advance_level.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
local updateClientOnAdvanceLevel = CreatureEvent("Update Client On Advance Level") | ||
|
||
function updateClientOnAdvanceLevel.onAdvance(player, skill, oldLevel, newLevel) | ||
if skill ~= SKILL_LEVEL then | ||
return true | ||
end | ||
|
||
player:updateClientExpDisplay() | ||
player:takeScreenshot(SCREENSHOT_TYPE_LEVELUP) | ||
return true | ||
end | ||
|
||
updateClientOnAdvanceLevel:register() |
12 changes: 12 additions & 0 deletions
12
data/scripts/creaturescripts/player/update_client_on_advance_skill.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
local updateClientOnAdvanceSkill = CreatureEvent("Update Client On Advance Skill") | ||
|
||
function updateClientOnAdvanceSkill.onAdvance(player, skill, oldLevel, newLevel) | ||
if skill == SKILL_LEVEL then | ||
return true | ||
end | ||
|
||
player:takeScreenshot(SCREENSHOT_TYPE_SKILLUP) | ||
return true | ||
end | ||
|
||
updateClientOnAdvanceSkill:register() |