birdcage.lua

main 10 lines · 247 bytes Raw
Alex Alex Commit Server upload 18/10/2026 23:38
1function onUse(player, item, fromPosition, target, toPosition, isHotkey)
2 if math.random(100) == 1 then
3 item:transform(2094)
4 player:addAchievement("Oops")
5 else
6 item:getPosition():sendMagicEffect(CONST_ME_SOUND_YELLOW)
7 end
8 return true
9end
10
Top