but you will get your results
Add-Ons/Weapon_LightSaber.cs (453): Player::mountimage - wrong number of arguments.
if(%player.client.LSHilt $= 1)%player.mountImage(LightSaber1Image);else if(%player.client.LSHilt $= 2)%player.mountImage(LightSaber2Image);else if(%player.client.LSHilt $= 3)%player.mountImage(LightSaber3Image);else%player.mountImage(LightSaber1Image);
Code: [Select]function LightsaberItem::onUse(%this,%player,%slot){ %player.updateArm(LightSaber1Image); if(%player.client.LSHilt $= 1) %player.mountImage(LightSaber1Image,0); else if(%player.client.LSHilt $= 2) %player.mountImage(LightSaber2Image,0); else if(%player.client.LSHilt $= 3) %player.mountImage(LightSaber3Image,0); else %player.mountImage(LightSaber1Image,0);}function serverCmdHilt1(%client){ %client.LSHilt = 1; if(%client.player.getMountedImage(0).item.getID() $= LightsaberItem.getID()) LightsaberItem::onUse(LightsaberItem,%client.player,0);}function serverCmdHilt2(%client){ %client.LSHilt = 2; if(%client.player.getMountedImage(0).item.getID() $= LightsaberItem.getID()) LightsaberItem::onUse(LightsaberItem,%client.player,0);}function serverCmdHilt3(%client){ %client.LSHilt = 3; if(%client.player.getMountedImage(0).item.getID() $= LightsaberItem.getID()) LightsaberItem::onUse(LightsaberItem,%client.player,0);}Might work, try and see. I'm assuming that all your lightsaber images use the same item. This will make it so that if you do /hilt3 and then equip a lightsaber, it will set it to the image with hilt 3. It will also make it so if you do /hilt3 while holding hilt 2, you will equip hilt 3.
function LightsaberItem::onUse(%this,%player,%slot){ %player.updateArm(LightSaber1Image); if(%player.client.LSHilt $= 1) %player.mountImage(LightSaber1Image,0); else if(%player.client.LSHilt $= 2) %player.mountImage(LightSaber2Image,0); else if(%player.client.LSHilt $= 3) %player.mountImage(LightSaber3Image,0); else %player.mountImage(LightSaber1Image,0);}function serverCmdHilt1(%client){ %client.LSHilt = 1; if(%client.player.getMountedImage(0).item.getID() $= LightsaberItem.getID()) LightsaberItem::onUse(LightsaberItem,%client.player,0);}function serverCmdHilt2(%client){ %client.LSHilt = 2; if(%client.player.getMountedImage(0).item.getID() $= LightsaberItem.getID()) LightsaberItem::onUse(LightsaberItem,%client.player,0);}function serverCmdHilt3(%client){ %client.LSHilt = 3; if(%client.player.getMountedImage(0).item.getID() $= LightsaberItem.getID()) LightsaberItem::onUse(LightsaberItem,%client.player,0);}