mirror of
https://github.com/opentibiabr/canary
synced 2026-08-16 06:26:09 -04:00
12 lines
361 B
Lua
12 lines
361 B
Lua
local explosivePresent = Action()
|
|
|
|
function explosivePresent.onUse(player, item, fromPosition, target, toPosition, isHotkey)
|
|
player:say("KABOOOOOOOOOOM!", TALKTYPE_MONSTER_SAY)
|
|
player:getPosition():sendMagicEffect(CONST_ME_FIREAREA)
|
|
player:addAchievement("Joke's on You")
|
|
item:remove()
|
|
return true
|
|
end
|
|
|
|
explosivePresent:id(906)
|
|
explosivePresent:register()
|