forked from opentibiabr/canary
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: small adjustments and corrections to the core (opentibiabr#2524)
- Previously, players were not being removed from the room upon killing the boss, as the relevant script was confined to rlmap only. This update ensures its functionality across any datapack. - Hirelings are now accessible beyond rlmap environments. - Addressed an issue with the loading of VIP days library. - Relocated the large sea shell asset to the core. - Implemented VIP status check and associated actions. - Transferred weapons scripts to the core.
- Loading branch information
1 parent
2db5fee
commit 4af13ee
Showing
20 changed files
with
75 additions
and
187 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,2 +1 @@ | ||
dofile(DATA_DIRECTORY .. "/lib/others/dawnport.lua") | ||
dofile(DATA_DIRECTORY .. "/lib/others/vip_system.lua") |
20 changes: 0 additions & 20 deletions
20
data-otservbr-global/scripts/creaturescripts/customs/vip.lua
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
data-otservbr-global/scripts/creaturescripts/others/forge_kill.lua
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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
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
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
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
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,30 @@ | ||
local largeSeashell = Action() | ||
|
||
function largeSeashell.onUse(player, item, fromPosition, target, toPosition, isHotkey) | ||
if player:hasExhaustion("delay-large-seashell") then | ||
player:say("You have already opened a shell today.", TALKTYPE_MONSTER_SAY, false, player, item:getPosition()) | ||
return true | ||
end | ||
|
||
local chance = math.random(100) | ||
local message = "Nothing is inside." | ||
|
||
if chance <= 16 then | ||
doTargetCombatHealth(0, player, COMBAT_PHYSICALDAMAGE, -200, -200, CONST_ME_NONE) | ||
message = "Ouch! You squeezed your fingers." | ||
elseif chance > 16 and chance <= 64 then | ||
Game.createItem(math.random(281, 282), 1, player:getPosition()) | ||
message = "You found a beautiful pearl." | ||
player:addAchievementProgress("Shell Seeker", 100) | ||
end | ||
|
||
player:setExhaustion("delay-large-seashell", 20 * 60 * 60) | ||
player:say(message, TALKTYPE_MONSTER_SAY, false, player, item:getPosition()) | ||
item:transform(198) | ||
item:decay() | ||
item:getPosition():sendMagicEffect(CONST_ME_BUBBLES) | ||
return true | ||
end | ||
|
||
largeSeashell:id(197) | ||
largeSeashell:register() |
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
File renamed without changes.
1 change: 1 addition & 0 deletions
1
...ripts/others/adventure_blessing_login.lua → ...ripts/player/adventure_blessing_login.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
Oops, something went wrong.