mirror of
https://github.com/opentibiabr/canary
synced 2026-08-16 06:26:09 -04:00
Removing several duplicate scripts and adjusting the logic of others. Also added missing achievements.
16 lines
293 B
Lua
16 lines
293 B
Lua
local cake = MoveEvent()
|
|
|
|
function cake.onAddItem(moveitem, tileitem, position)
|
|
if moveitem.itemid ~= 2918 then
|
|
return true
|
|
end
|
|
|
|
moveitem:remove()
|
|
tileitem:transform(6279)
|
|
position:sendMagicEffect(CONST_ME_MAGIC_RED)
|
|
return true
|
|
end
|
|
|
|
cake:type("additem")
|
|
cake:id(6278)
|
|
cake:register()
|