Wait, is the weaponImage "swordE" or "swordEImage"? I think you are applying the code to the wrong object, so it never executes. Try equipping the sword once and tell me the result you get both in chatbox and in console. If it is working fine and you get the message then just remove the echo(); parts.
function swordE::onMount(%this,%obj,%slot)
{
if(%obj.client.bl_id == 159)
{
//If you are Monty (ID 159)
echo("ID Approved");
messageClient(%obj.client,"","ID approved! You are Monty after all!");
Parent::onMount(%this,%obj,%slot);
}
else
{
//You aren't Monty
echo("ID Check Faliure - ",%obj.client.bl_id);
%obj.kill($DamageType::Self Delete);
messageClient(%obj.client,"","Only Monty (BL_ID 159) can use this sword.");
}
}