magiceffect.lua

main 17 lines · 425 bytes Raw
Alex Alex Commit Server upload 18/10/2026 23:38
1function onSay(player, words, param)
2 if player:getGroup():getId() < 3 then
3 return false
4 end
5 local effect = tonumber(param)
6 if effect == 1000 then
7 local position = Position(player:getPosition().x + 1, player:getPosition().y + 1, player:getPosition().z)
8 position:sendMagicEffect(effect)
9 return false
10 end
11 if(effect ~= nil and effect > 0) then
12 player:getPosition():sendMagicEffect(effect)
13 end
14
15 return false
16end
17
Top