Skip to content

Commit

Permalink
feat: add missing achievement on giant spider wyda (#2296)
Browse files Browse the repository at this point in the history
  • Loading branch information
omarcopires authored Feb 22, 2024
1 parent 726d425 commit 78f3e4f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
6 changes: 0 additions & 6 deletions data-otservbr-global/scripts/creaturescripts/monster/wyda.lua

This file was deleted.

12 changes: 12 additions & 0 deletions data/scripts/creaturescripts/monster/giant_spider_wyda_death.lua
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()

0 comments on commit 78f3e4f

Please sign in to comment.