-
-
Notifications
You must be signed in to change notification settings - Fork 646
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add missing achievement on giant spider wyda (#2296)
- Loading branch information
1 parent
726d425
commit 78f3e4f
Showing
2 changed files
with
12 additions
and
6 deletions.
There are no files selected for viewing
6 changes: 0 additions & 6 deletions
6
data-otservbr-global/scripts/creaturescripts/monster/wyda.lua
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
data/scripts/creaturescripts/monster/giant_spider_wyda_death.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 creatureevent = CreatureEvent("GiantSpiderWyda") | ||
|
||
function creatureevent.onDeath(creature, corpse, killer, mostDamageKiller, lastHitUnjustified, mostDamageUnjustified) | ||
creature:say("It seems this was just an illusion.", TALKTYPE_MONSTER_SAY) | ||
|
||
if mostDamageKiller:isPlayer() then | ||
mostDamageKiller:addAchievement("Someone's Bored") | ||
end | ||
return true | ||
end | ||
|
||
creatureevent:register() |