Open the movement.cpp file and search: bool MoveEvent::executeEquip(Player* player, Item* item, slots_t slot, bool boolean)
Go to the line: lua_pushboolean(L, boolean);
Next, add this line: lua_pushboolean(L, equip ? EquipItem(this, player, item, slot, boolean) : DeEquipItem(this, player, item...