Nothing really special, made it real fast.
data/events/scripts/player.lua
Red
data/events/scripts/player.lua
Code:
local antiPushId = 13531
function Player:onMoveCreature(creature, fromPosition, toPosition)
if creature:isPlayer() then
local amulet = creature:getSlotItem(CONST_SLOT_NECKLACE)
if amulet and amulet:getId() == antiPushId then
self:sendCancelMessage("You cannot push this player. They are wearing an anti-push amulet.")
return false
end
end
return true
end
Red
Last edited: