public void setWeapon(Item weapon) { Weapon = weapon; if (this.Address != 0) { Process process = Process.ThisProcess(); oCNpc npc = new oCNpc(process, this.Address); if (Weapon == null) { hNpc.blockSendUnEquip = true; npc.UnequipItem(npc.GetEquippedMeleeWeapon()); } else { if (Weapon.Address == 0) { throw new Exception("Weapon Adress can't be null if player using it is spawned!"); } hNpc.blockSendEquip = true; npc.EquipWeapon(new oCItem(process, Weapon.Address)); } } }