From 6e48aac3000805b35852d1332c3bd2a38b647349 Mon Sep 17 00:00:00 2001 From: Marco Date: Fri, 1 Mar 2024 03:16:19 -0300 Subject: [PATCH] fix: yellow pillow id and change to core --- {data-canary => data}/scripts/movements/yellow_pillow.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) rename {data-canary => data}/scripts/movements/yellow_pillow.lua (66%) diff --git a/data-canary/scripts/movements/yellow_pillow.lua b/data/scripts/movements/yellow_pillow.lua similarity index 66% rename from data-canary/scripts/movements/yellow_pillow.lua rename to data/scripts/movements/yellow_pillow.lua index 6d981448ca5..f0a433f2fb7 100644 --- a/data-canary/scripts/movements/yellow_pillow.lua +++ b/data/scripts/movements/yellow_pillow.lua @@ -1,14 +1,16 @@ local yellowPillow = MoveEvent() -yellowPillow:type("stepin") -function yellowPillow.onStepIn(player, item, position, fromPosition) +function yellowPillow.onStepIn(creature, item, position, fromPosition) + local player = creature:getPlayer() if not player or player:isInGhostMode() then return true end + player:say("Faaart!", TALKTYPE_MONSTER_SAY) item:getPosition():sendMagicEffect(CONST_ME_POFF) return true end -yellowPillow:id(8072) +yellowPillow:id(2397) +yellowPillow:type("stepin") yellowPillow:register()