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.
21 lines
388 B
Lua
21 lines
388 B
Lua
local pastries = {
|
|
[3604] = 3600,
|
|
[6276] = 6277,
|
|
}
|
|
|
|
local dough = MoveEvent()
|
|
|
|
function dough.onAddItem(moveitem, tileitem, position)
|
|
local pastryId = pastries[moveitem.itemid]
|
|
if not pastryId then
|
|
return true
|
|
end
|
|
|
|
moveitem:transform(pastryId)
|
|
position:sendMagicEffect(CONST_ME_HITBYFIRE)
|
|
return true
|
|
end
|
|
|
|
dough:type("additem")
|
|
dough:id(2535, 2537, 2539, 2541)
|
|
dough:register()
|