mirror of
https://github.com/otland/forgottenserver
synced 2026-08-15 16:32:07 -04:00
11 lines
404 B
Lua
11 lines
404 B
Lua
local creatureevent = CreatureEvent("ScarabDeath")
|
|
|
|
function creatureevent.onDeath(creature, corpse, killer, mostDamageKiller, lastHitUnjustified, mostDamageUnjustified)
|
|
if math.random(100) < 10 then
|
|
Game.createMonster("Scorpion", creature:getPosition())
|
|
creature:say("Horestis' curse spawns a vengeful scorpion from the body!", TALKTYPE_MONSTER_SAY)
|
|
end
|
|
return true
|
|
end
|
|
|
|
creatureevent:register()
|